﻿*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

:root {
    --blue-900: #0a2540;
    --blue-700: #0e4d7a;
    --blue-500: #1a8fcb;
    --cyan-400: #38d9f5;
    --cyan-300: #7ae8fa;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-700: #334155;
    --gray-900: #0f172a;
    --white: #fff;
    --danger: #ef4444;
    --success: #22c55e;
    --warning: #f59e0b;
    --info: #3b82f6
}

body {
    font-family: 'Plus Jakarta Sans',-apple-system,sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--gray-50);
    color: var(--gray-900);
    overflow-x: hidden
}

#particles {
    position: fixed;
    inset: 0;
    z-index: 0
}

.bg-decoration {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden
}

    .bg-decoration .orb {
        position: absolute;
        border-radius: 50%;
        filter: blur(80px);
        opacity: .25
    }

    .bg-decoration .orb-1 {
        width: 600px;
        height: 600px;
        background: radial-gradient(circle,var(--cyan-400),transparent 70%);
        top: -200px;
        left: -100px;
        animation: float-1 20s ease-in-out infinite
    }

    .bg-decoration .orb-2 {
        width: 500px;
        height: 500px;
        background: radial-gradient(circle,var(--blue-500),transparent 70%);
        bottom: -150px;
        right: -100px;
        animation: float-2 25s ease-in-out infinite
    }

    .bg-decoration .orb-3 {
        width: 300px;
        height: 300px;
        background: radial-gradient(circle,var(--cyan-300),transparent 70%);
        top: 50%;
        left: 50%;
        transform: translate(-50%,-50%);
        animation: float-3 18s ease-in-out infinite;
        opacity: .12
    }

@keyframes float-1 {
    0%, 100% {
        transform: translate(0,0)
    }

    50% {
        transform: translate(40px,30px)
    }
}

@keyframes float-2 {
    0%, 100% {
        transform: translate(0,0)
    }

    50% {
        transform: translate(-30px,-40px)
    }
}

@keyframes float-3 {
    0%, 100% {
        transform: translate(-50%,-50%) scale(1)
    }

    50% {
        transform: translate(-50%,-50%) scale(1.3)
    }
}

main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    padding: 2rem
}

.login-container {
    display: flex;
    align-items: center;
    gap: 5rem;
    max-width: 960px;
    width: 100%;
    animation: fadeUp .8s ease-out both
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.brand-side {
    flex: 1;
    text-align: center;
    animation: fadeUp .8s ease-out .1s both
}

.logo-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem
}

.logo-text {
    font-size: 4.5rem;
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1;
    background: linear-gradient(135deg,var(--blue-900),var(--blue-500) 50%,var(--cyan-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text
}

.logo-subtitle {
    font-size: .85rem;
    font-weight: 700;
    color: var(--gray-500);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 0.5rem;
    margin-left: 2.5rem;
    display: flex;
    flex-direction: unset;
    align-items: center;
    gap: 8px;
    line-height: 1.6;
}

    .logo-subtitle span::first-letter {
        color: var(--blue-500);
        font-weight: 800;
    }

.brand-desc {
    color: var(--gray-400);
    font-size: .875rem;
    margin-top: 1.25rem;
    line-height: 1.6;
    max-width: 280px;
    margin-inline: auto
}

.node-ring {
    position: absolute;
    width: 280px;
    height: 280px;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    pointer-events: none;
    animation: spin-slow 60s linear infinite
}

    .node-ring .dot {
        position: absolute;
        width: 6px;
        height: 6px;
        background: var(--cyan-400);
        border-radius: 50%;
        opacity: .5
    }

        .node-ring .dot:nth-child(1) {
            top: 0;
            left: 50%
        }

        .node-ring .dot:nth-child(2) {
            top: 15%;
            right: 5%
        }

        .node-ring .dot:nth-child(3) {
            bottom: 15%;
            right: 5%
        }

        .node-ring .dot:nth-child(4) {
            bottom: 0;
            left: 50%
        }

        .node-ring .dot:nth-child(5) {
            bottom: 15%;
            left: 5%
        }

        .node-ring .dot:nth-child(6) {
            top: 15%;
            left: 5%
        }

@keyframes spin-slow {
    to {
        transform: translate(-50%,-50%) rotate(360deg)
    }
}

.card-side {
    flex: 1;
    max-width: 440px;
    animation: fadeUp .8s ease-out .25s both
}

.login-card {
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 1px 3px rgba(10,37,64,.04),0 8px 24px rgba(10,37,64,.06),0 24px 48px rgba(10,37,64,.04);
    border: 1px solid rgba(56,217,245,.12);
    position: relative;
    overflow: hidden
}

    .login-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg,var(--blue-500),var(--cyan-400));
        border-radius: 20px 20px 0 0
    }

.card-header-text h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: .35rem
}

.card-header-text p {
    font-size: .85rem;
    color: var(--gray-400);
    line-height: 1.5;
    margin-bottom: 0
}

.hub-alert {
    padding: .75rem 1rem;
    border-radius: 10px;
    font-size: .82rem;
    font-weight: 500;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    animation: fadeUp .3s ease-out both
}

.hub-alert-danger {
    background: rgba(239,68,68,.08);
    border: 1px solid rgba(239,68,68,.15);
    color: #b91c1c
}

.hub-alert-success {
    background: rgba(34,197,94,.08);
    border: 1px solid rgba(34,197,94,.15);
    color: #15803d
}

.hub-alert-warning {
    background: rgba(245,158,11,.08);
    border: 1px solid rgba(245,158,11,.15);
    color: #92400e
}

.hub-alert-info {
    background: rgba(59,130,246,.08);
    border: 1px solid rgba(59,130,246,.15);
    color: #1d4ed8
}

.hub-alert .close-alert {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    color: inherit;
    opacity: .5;
    padding: 0;
    transition: opacity .2s
}

    .hub-alert .close-alert:hover {
        opacity: 1
    }

.form-group {
    margin-top: 1.25rem
}

    .form-group + .form-group {
        margin-top: 1rem
    }

.input-label {
    display: block;
    font-size: .8rem;
    font-weight: 600;
    color: var(--gray-500);
    margin-bottom: .4rem;
    letter-spacing: .3px
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center
}

    .input-wrapper .icon {
        position: absolute;
        left: 14px;
        color: var(--gray-400);
        display: flex;
        align-items: center;
        transition: color .2s;
        z-index: 1
    }

    .input-wrapper input {
        width: 100%;
        padding: .82rem 1rem .82rem 2.75rem;
        font-family: inherit;
        font-size: .925rem;
        color: var(--gray-900);
        background: rgba(248,250,252,.8);
        border: 1.5px solid var(--gray-300);
        border-radius: 12px;
        outline: none;
        transition: all .25s ease
    }

        .input-wrapper input::placeholder {
            color: var(--gray-400)
        }

        .input-wrapper input:focus {
            border-color: var(--blue-500);
            background: var(--white);
            box-shadow: 0 0 0 3px rgba(26,143,203,.12)
        }

    .input-wrapper:focus-within .icon {
        color: var(--blue-500)
    }

.toggle-password {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 4px;
    transition: color .2s;
    z-index: 1
}

    .toggle-password:hover {
        color: var(--gray-700)
    }

.options-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.25rem
}

.remember-me {
    display: flex;
    align-items: center;
    gap: .5rem;
    cursor: pointer;
    font-size: .825rem;
    color: var(--gray-500);
    user-select: none
}

    .remember-me input[type="checkbox"] {
        appearance: none;
        -webkit-appearance: none;
        width: 18px;
        height: 18px;
        border: 1.5px solid var(--gray-300);
        border-radius: 5px;
        cursor: pointer;
        position: relative;
        transition: all .2s;
        flex-shrink: 0
    }

        .remember-me input[type="checkbox"]:checked {
            background: var(--blue-500);
            border-color: var(--blue-500)
        }

            .remember-me input[type="checkbox"]:checked::after {
                content: '';
                position: absolute;
                left: 5px;
                top: 2px;
                width: 5px;
                height: 9px;
                border: solid var(--white);
                border-width: 0 2px 2px 0;
                transform: rotate(45deg)
            }

.forgot-link {
    font-size: .825rem;
    font-weight: 600;
    color: var(--blue-500);
    text-decoration: none;
    transition: color .2s;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
    padding: 0
}

    .forgot-link:hover {
        color: var(--blue-700)
    }

.login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    width: 100%;
    margin-top: 1.75rem;
    padding: .85rem 1.5rem;
    font-family: inherit;
    font-size: .95rem;
    font-weight: 700;
    color: var(--white);
    background: linear-gradient(135deg,var(--blue-700),var(--blue-500));
    border: none;
    border-radius: 12px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all .3s ease;
    box-shadow: 0 4px 12px rgba(26,143,203,.3)
}

    .login-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 20px rgba(26,143,203,.4)
    }

    .login-btn:active {
        transform: translateY(0)
    }

    .login-btn:disabled {
        opacity: .7;
        cursor: not-allowed;
        transform: none !important
    }

    .login-btn .arrow {
        transition: transform .3s
    }

    .login-btn:hover .arrow {
        transform: translateX(3px)
    }

.btn-spinner {
    display: none;
    align-items: center;
    gap: .5rem
}

    .btn-spinner.active {
        display: flex
    }

.btn-text.hidden {
    display: none
}

.spinner {
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255,255,255,.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin .6s linear infinite
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

.back-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    margin-top: 1rem;
    font-size: .825rem;
    color: var(--gray-400);
    text-decoration: none;
    transition: color .2s;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
    width: 100%;
    padding: 0
}

    .back-link:hover {
        color: var(--gray-700)
    }

    .back-link svg {
        transition: transform .2s
    }

    .back-link:hover svg {
        transform: translateX(-2px)
    }

.steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 1.25rem 0 1.5rem
}

.step-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .7rem;
    font-weight: 700;
    border: 2px solid var(--gray-300);
    color: var(--gray-400);
    background: var(--white);
    position: relative;
    z-index: 1;
    transition: all .3s
}

    .step-dot.active {
        border-color: var(--blue-500);
        color: var(--white);
        background: var(--blue-500);
        box-shadow: 0 2px 8px rgba(26,143,203,.25)
    }

    .step-dot.done {
        border-color: var(--success);
        color: var(--white);
        background: var(--success)
    }

.step-line {
    width: 48px;
    height: 2px;
    background: var(--gray-300);
    transition: background .3s
}

    .step-line.done {
        background: var(--success)
    }

.icon-circle {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,rgba(26,143,203,.08),rgba(56,217,245,.12));
    border: 1.5px solid rgba(56,217,245,.15);
    margin-bottom: 1rem;
    color: var(--blue-500)
}

.info-box {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    margin-top: 1rem;
    padding: .7rem .9rem;
    background: rgba(26,143,203,.04);
    border: 1px solid rgba(26,143,203,.1);
    border-radius: 10px
}

    .info-box svg {
        flex-shrink: 0;
        color: var(--blue-500);
        margin-top: 1px
    }

    .info-box p {
        font-size: .76rem;
        color: var(--gray-500);
        line-height: 1.5;
        margin: 0
    }

.otp-row {
    display: flex;
    gap: .55rem;
    justify-content: center;
    margin-top: .25rem
}

.otp-input {
    width: 46px;
    height: 54px;
    text-align: center;
    font-family: inherit;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    background: rgba(248,250,252,.8);
    border: 1.5px solid var(--gray-300);
    border-radius: 12px;
    outline: none;
    transition: all .25s
}

    .otp-input:focus {
        border-color: var(--blue-500);
        background: var(--white);
        box-shadow: 0 0 0 3px rgba(26,143,203,.12)
    }

    .otp-input::placeholder {
        color: var(--gray-300)
    }

.resend-row {
    text-align: center;
    margin-top: .85rem
}

    .resend-row span {
        font-size: .78rem;
        color: var(--gray-400)
    }

.resend-btn {
    background: none;
    border: none;
    font-family: inherit;
    font-size: .78rem;
    font-weight: 600;
    color: var(--blue-500);
    cursor: pointer
}

    .resend-btn:hover {
        color: var(--blue-700)
    }

    .resend-btn:disabled {
        color: var(--gray-400);
        cursor: not-allowed
    }

.strength-bar {
    display: flex;
    gap: 4px;
    margin-top: .6rem
}

.strength-seg {
    height: 4px;
    flex: 1;
    border-radius: 2px;
    background: var(--gray-300);
    transition: background .3s
}

.strength-text {
    font-size: .7rem;
    color: var(--gray-400);
    margin-top: .3rem
}

.success-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg,rgba(34,197,94,.1),rgba(34,197,94,.15));
    border: 2px solid rgba(34,197,94,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--success);
    animation: pop-in .4s cubic-bezier(.175,.885,.32,1.275) both
}

@keyframes pop-in {
    from {
        opacity: 0;
        transform: scale(.5)
    }

    to {
        opacity: 1;
        transform: scale(1)
    }
}

.view {
    display: none
}

    .view.active {
        display: block;
        animation: fadeUp .4s ease-out both
    }

.hub-footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 1.25rem 2rem;
    font-size: .775rem;
    color: var(--gray-400);
    border-top: 1px solid rgba(203,213,225,.4)
}

    .hub-footer a {
        color: var(--blue-500);
        text-decoration: none;
        font-weight: 600
    }

        .hub-footer a:hover {
            text-decoration: underline
        }

@media(max-width:768px) {
    .login-container {
        flex-direction: column;
        gap: 2.5rem
    }

    .brand-side {
        flex: none
    }

    .logo-text {
        font-size: 3.2rem
    }

    .card-side {
        max-width: 100%;
        width: 100%
    }

    .node-ring {
        display: none
    }

    .otp-input {
        width: 40px;
        height: 48px;
        font-size: 1.1rem
    }
}

.swal2-popup {
    font-family: 'Plus Jakarta Sans',-apple-system,sans-serif !important;
    border-radius: 16px !important
}

.swal2-confirm, .swal2-cancel {
    border-radius: 10px !important;
    font-weight: 600 !important;
    font-family: 'Plus Jakarta Sans',sans-serif !important
}
