.auth-page-wrap {
    min-height: 100vh;
    display: flex;

    align-items: flex-start;

    padding-top: 90px;
    padding-bottom: 60px;

    justify-content: center;
    padding-left: 24px;
    padding-right: 24px;

    position: relative;
    overflow-x: hidden;

    background: linear-gradient(155deg, #eef4fb 0%, #f8faff 50%, #edf2f9 100%);
}

/* ==================== BACKGROUND ==================== */
.bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    z-index: 0;
}

.bg-orb-1 {
    width: 700px;
    height: 700px;
    background: radial-gradient(
        circle,
        rgba(44, 107, 158, 0.13) 0%,
        transparent 65%
    );
    top: -200px;
    right: -150px;
    animation: orbDrift1 13s ease-in-out infinite;
}

.bg-orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(
        circle,
        rgba(10, 37, 64, 0.07) 0%,
        transparent 65%
    );
    bottom: -150px;
    left: -80px;
    animation: orbDrift2 16s ease-in-out infinite;
}

.bg-orb-3 {
    width: 320px;
    height: 320px;
    background: radial-gradient(
        circle,
        rgba(74, 144, 196, 0.09) 0%,
        transparent 65%
    );
    top: 30%;
    left: 35%;
    animation: orbDrift3 10s ease-in-out infinite;
}

@keyframes orbDrift1 {
    0%,
    100% {
        transform: translate(0, 0);
    }

    33% {
        transform: translate(25px, -20px);
    }

    66% {
        transform: translate(-15px, 30px);
    }
}

@keyframes orbDrift2 {
    0%,
    100% {
        transform: translate(0, 0);
    }

    33% {
        transform: translate(-20px, 15px);
    }

    66% {
        transform: translate(25px, -25px);
    }
}

@keyframes orbDrift3 {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(12px, -12px) scale(1.08);
    }
}

.bg-noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
    opacity: 0.6;
}

.particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* ==================== CARD ==================== */
.auth-card {
    position: relative;
    z-index: 1;
    display: flex;
    width: 100%;
    max-width: 980px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--white);
    opacity: 0;
    transform: translateY(36px) scale(0.97);
    animation: cardEntrance 0.85s var(--ease) 0.1s forwards;
}

@keyframes cardEntrance {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ==================== LEFT PANEL ==================== */
.auth-left {
    width: 38%;
    flex-shrink: 0;
    background: linear-gradient(
        155deg,
        var(--primary) 0%,
        #0e3055 50%,
        #174a7a 100%
    );
    padding: 48px 40px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.left-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.left-ring-1 {
    width: 420px;
    height: 420px;
    top: -140px;
    right: -100px;
    animation: rotateSlow 38s linear infinite;
}

.left-ring-2 {
    width: 270px;
    height: 270px;
    top: -30px;
    right: 20px;
    animation: rotateSlow 24s linear infinite reverse;
}

.left-ring-3 {
    width: 160px;
    height: 160px;
    bottom: 80px;
    left: -50px;
    animation: rotateSlow 18s linear infinite;
}

@keyframes rotateSlow {
    to {
        transform: rotate(360deg);
    }
}

.left-noise {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    opacity: 0.5;
}

.left-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInLeft 0.7s var(--ease) 0.5s forwards;
}

.left-logo-icon {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 18px;
    transition:
        background 0.3s,
        transform 0.3s var(--ease-spring);
}

.left-logo-icon:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.08) rotate(-4deg);
}

.left-logo-name {
    font-size: 18px;
    font-weight: 800;
    color: white;
    letter-spacing: -0.05em;
}

.left-content {
    position: relative;
    z-index: 2;
}

.left-eyebrow {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    display: block;
    margin-bottom: 14px;
    opacity: 0;
    animation: fadeUpItem 0.65s var(--ease) 0.65s forwards;
}

.left-title {
    font-size: clamp(24px, 3vw, 31px);
    font-weight: 800;
    color: white;
    line-height: 1.2;
    letter-spacing: -0.04em;
    opacity: 0;
    animation: fadeUpItem 0.7s var(--ease) 0.75s forwards;
}

.left-title em {
    font-style: normal;
    background: linear-gradient(135deg, #f5c842, #f0a830);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.left-accent-line {
    width: 0;
    height: 3px;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.7),
        rgba(255, 255, 255, 0.2)
    );
    border-radius: 99px;
    margin: 18px 0;
    animation: lineExpand 0.7s var(--ease) 1s forwards;
}

@keyframes lineExpand {
    to {
        width: 40px;
    }
}

.left-desc {
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.75;
    margin-bottom: 26px;
    opacity: 0;
    animation: fadeUpItem 0.65s var(--ease) 0.88s forwards;
}

.left-features {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.left-feature {
    display: flex;
    align-items: center;
    gap: 11px;
    opacity: 0;
    transform: translateX(-14px);
}

.left-feature:nth-child(1) {
    animation: slideInFeature 0.55s var(--ease) 1s forwards;
}

.left-feature:nth-child(2) {
    animation: slideInFeature 0.55s var(--ease) 1.1s forwards;
}

.left-feature:nth-child(3) {
    animation: slideInFeature 0.55s var(--ease) 1.2s forwards;
}

.left-feature:nth-child(4) {
    animation: slideInFeature 0.55s var(--ease) 1.3s forwards;
}

.left-feature:nth-child(5) {
    animation: slideInFeature 0.55s var(--ease) 1.4s forwards;
}

@keyframes slideInFeature {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.left-feature-icon {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition:
        background 0.25s,
        transform 0.25s var(--ease-spring);
}

.left-feature:hover .left-feature-icon {
    background: rgba(255, 255, 255, 0.22);
    transform: scale(1.1);
}

.left-feature span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 500;
}

.left-bottom {
    position: relative;
    z-index: 2;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.28);
    letter-spacing: 0.5px;
    opacity: 0;
    animation: fadeUpItem 0.5s var(--ease) 1.55s forwards;
}

/* ==================== RIGHT PANEL ==================== */
.auth-right {
    flex: 1;

    padding: 58px 48px;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 80px;

    overflow-y: auto;
    max-height: 100vh;
}

.auth-right::-webkit-scrollbar {
    width: 4px;
}

.auth-right::-webkit-scrollbar-track {
    background: transparent;
}

.auth-right::-webkit-scrollbar-thumb {
    background: var(--gray-border);
    border-radius: 99px;
}

.auth-heading {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.04em;
    margin-bottom: 5px;
    opacity: 0;
    transform: translateY(18px);
    animation: fadeUpItem 0.65s var(--ease) 0.4s forwards;
}

.auth-sub {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(14px);
    animation: fadeUpItem 0.6s var(--ease) 0.5s forwards;
}

.auth-sub a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.auth-sub a:hover {
    color: var(--primary);
}

/* Progress bar */
.reg-progress {
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeUpItem 0.5s var(--ease) 0.55s forwards;
}

.reg-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.reg-progress-track {
    height: 4px;
    background: var(--gray-border);
    border-radius: 99px;
    overflow: hidden;
}

.reg-progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 99px;
    transition: width 0.6s var(--ease);
}

/* Form layout */
.auth-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.auth-form-group {
    margin-bottom: 16px;
    opacity: 0;
    transform: translateY(16px);
}

.auth-form-label {
    display: block;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary);
    margin-bottom: 7px;
}

.auth-input-wrap {
    position: relative;
}

.auth-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #b0bec8;
    font-size: 13px;
    pointer-events: none;
    transition: color 0.25s;
}

.auth-input-wrap:focus-within .auth-input-icon {
    color: var(--accent);
}

.auth-input {
    display: block;
    width: 100%;
    padding: 12px 44px 12px 40px;
    border: 1.5px solid var(--gray-border);
    border-radius: var(--radius-sm);
    font-family: "Inter", sans-serif;
    font-size: 14px;
    color: var(--text);
    background: var(--off-white);
    transition:
        border-color 0.25s,
        box-shadow 0.25s,
        background 0.25s,
        transform 0.2s;
    outline: none;
}

.auth-input::placeholder {
    color: #b5c0cc;
}

.auth-input:focus {
    border-color: var(--accent);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(44, 107, 158, 0.11);
    transform: translateY(-1px);
}

.auth-input.is-invalid {
    border-color: #ef4444;
}

.auth-input.no-right-icon {
    padding-right: 16px;
}

.auth-toggle-pw {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #b0bec8;
    font-size: 13px;
    padding: 4px;
    transition: color 0.2s;
}

.auth-toggle-pw:hover {
    color: var(--accent);
}

/* Password strength */
.pw-strength {
    margin-top: 7px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    height: 3px;
}

.pw-bar {
    border-radius: 99px;
    background: var(--gray-border);
    transition: background 0.4s var(--ease);
}

.pw-bar.filled-1 {
    background: #ef4444;
}

.pw-bar.filled-2 {
    background: #f97316;
}

.pw-bar.filled-3 {
    background: #eab308;
}

.pw-bar.filled-4 {
    background: #16a34a;
}

/* Minat grid */
.minat-section-label {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    animation: fadeUpItem 0.55s var(--ease) 1.5s forwards;
}

.minat-optional {
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-muted);
    background: var(--gray-border);
    padding: 2px 8px;
    border-radius: 99px;
    text-transform: uppercase;
}

.minat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 9px;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeUpItem 0.55s var(--ease) 1.6s forwards;
}

.minat-option input {
    display: none;
}

.minat-card {
    border: 1.5px solid var(--gray-border);
    border-radius: var(--radius-md);
    padding: 13px 8px;
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    background: var(--off-white);
    transition: all 0.3s var(--ease-spring);
}

.minat-card .minat-emoji {
    font-size: 22px;
    transition: transform 0.3s var(--ease-spring);
}

.minat-card span {
    font-size: 10.5px;
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.2s;
}

.minat-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.minat-card:hover .minat-emoji {
    transform: scale(1.15);
}

.minat-option input:checked + .minat-card {
    border-color: var(--primary);
    background: rgba(10, 37, 64, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(10, 37, 64, 0.12);
}

.minat-option input:checked + .minat-card span {
    color: var(--primary);
}

/* Terms */
.auth-terms-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--text-muted);
    opacity: 0;
    animation: fadeUpItem 0.5s var(--ease) 1.7s forwards;
}

.auth-terms-row input {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: var(--primary);
    cursor: pointer;
    flex-shrink: 0;
}

.auth-terms-row a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

.auth-terms-row a:hover {
    color: var(--primary);
}

/* Submit */
.auth-btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px;
    min-height: 52px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 99px;
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.01em;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition:
        background 0.3s,
        transform 0.3s var(--ease-spring),
        box-shadow 0.3s;
    opacity: 0;
    animation: fadeUpItem 0.55s var(--ease) 1.8s forwards;
}

.auth-btn-submit::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.15),
        transparent
    );
    transform: skewX(-20deg);
    transition: left 0.6s var(--ease);
}

.auth-btn-submit:hover::before {
    left: 160%;
}

.auth-btn-submit:hover {
    background: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(10, 37, 64, 0.27);
}

.auth-btn-submit i {
    transition: transform 0.3s var(--ease-spring);
}

.auth-btn-submit:hover i {
    transform: translateX(6px);
}

.auth-btn-submit:active {
    transform: scale(0.98);
}

/* Validation error */
.auth-error {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #ef4444;
    font-weight: 500;
}

/* ==================== SHARED KEYFRAMES ==================== */
@keyframes fadeUpItem {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 860px) {
    .auth-page-wrap {
        padding: 16px;
    }

    .auth-card {
        flex-direction: column;
        max-width: 520px;
    }

    .auth-left {
        width: 100%;
        padding: 34px 26px;
    }

    .left-ring-1,
    .left-ring-2,
    .left-ring-3 {
        display: none;
    }

    .auth-right {
        padding: 36px 28px;
        max-height: none;
    }
}

@media (max-width: 540px) {
    .auth-form-row {
        grid-template-columns: 1fr;
    }

    .minat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
