﻿html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: Inter, sans-serif;
    background: #f5f7fb;
}

/* =========================
   LAYOUT
========================= */

.auth-layout {
    position: relative;
    display: flex;
    min-height: 100vh;
    overflow: hidden;
}

/* =========================
   GLOBAL GLOW
========================= */

    .auth-layout::before {
        content: "";
        position: absolute;
        width: 720px;
        height: 720px;
        border-radius: 50%;
        background: radial-gradient( rgba(124,58,237,.12), transparent 70% );
        top: -320px;
        right: -220px;
        pointer-events: none;
        z-index: 0;
    }

    .auth-layout::after {
        content: "";
        position: absolute;
        width: 520px;
        height: 520px;
        border-radius: 50%;
        background: radial-gradient( rgba(124,58,237,.08), transparent 70% );
        bottom: -240px;
        left: -180px;
        pointer-events: none;
        z-index: 0;
    }

/* =========================
   LEFT
========================= */

.auth-left {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: linear-gradient( 135deg, #7c3aed, #6d28d9 );
    color: white;
    display: flex;
    align-items: flex-start;
    padding: 64px;
    padding-right: 180px;
    padding-top: 140px;
    z-index: 2;
}

    .auth-left::before {
        content: "";
        position: absolute;
        width: 520px;
        height: 520px;
        border-radius: 50%;
        background: rgba(255,255,255,.08);
        top: -120px;
        right: -120px;
        filter: blur(10px);
    }

    .auth-left::after {
        content: "";
        position: absolute;
        width: 320px;
        height: 320px;
        border-radius: 50%;
        background: rgba(255,255,255,.06);
        bottom: -100px;
        left: -100px;
        filter: blur(10px);
    }

.auth-left-content {
    position: relative;
    z-index: 5;
    max-width: 560px;
}

.auth-left h1 {
    font-size: 64px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -.03em;
    margin-bottom: 24px;
}

.auth-left p {
    font-size: 20px;
    line-height: 1.8;
    opacity: .94;
    margin: 0;
}

/* =========================
   RIGHT
========================= */

.auth-right {
    width: 560px;
    min-width: 560px;
    background: linear-gradient( 180deg, #ffffff, #fcfcff );
    border-left: 1px solid rgba(229,231,235,.7);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 64px;
    overflow-y: auto;
    position: relative;
    z-index: 2;
}

/* =========================
   CARD
========================= */

.auth-card {
    width: 100%;
    max-width: 380px;
}

/* =========================
   LOGO
========================= */

.auth-logo {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    background: linear-gradient( 135deg, #8b5cf6, #7c3aed );
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 28px;
    box-shadow: 0 20px 50px rgba(124,58,237,.25);
}

/* =========================
   TYPOGRAPHY
========================= */

.auth-title {
    font-size: 48px;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -.03em;
    color: #111827;
    margin-bottom: 12px;
}

.auth-subtitle {
    font-size: 17px;
    line-height: 1.7;
    color: #6b7280;
    margin-bottom: 40px;
}

/* =========================
   FORM
========================= */

.form-control {
    height: 56px;
    border-radius: 16px;
    border: 1px solid #d1d5db;
    padding-left: 18px;
    padding-right: 52px;
    font-size: 15px;
    background: white;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

    .form-control:hover {
        border-color: #c4b5fd;
    }

    .form-control:focus {
        border-color: #7c3aed;
        box-shadow: 0 0 0 4px rgba(124,58,237,.12);
        transform: translateY(-1px);
    }

/* =========================
   BUTTON
========================= */

.btn-auth {
    height: 56px;
    border-radius: 16px;
    border: 0;
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient( 135deg, #7c3aed, #6d28d9 );
    box-shadow: 0 16px 40px rgba(124,58,237,.24);
    transition: transform .15s ease, opacity .15s ease, box-shadow .15s ease;
}

    .btn-auth:hover {
        opacity: .97;
        transform: translateY(-1px);
        box-shadow: 0 22px 50px rgba(124,58,237,.30);
    }

/* =========================
   ALERTS
========================= */

.alert {
    border-radius: 16px;
    font-size: 14px;
    margin-bottom: 20px;
}

/* =========================
   VALIDATION
========================= */

.validation-summary-errors {
    margin-bottom: 20px;
}

/* =========================
   PASSWORD TOGGLE
========================= */

.password-group {
    position: relative;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
}

    .password-toggle:hover {
        color: #111827;
    }

    .password-toggle i {
        font-size: 15px;
    }

/* =========================
   BUTTON LOADING
========================= */

.btn-loading {
    pointer-events: none;
    opacity: .9;
}

    .btn-loading .btn-text {
        display: none;
    }

    .btn-loading .btn-spinner {
        display: inline-block;
    }

.btn-spinner {
    display: none;
}

/* =========================
   LINKS
========================= */

.auth-card a {
    color: #6d28d9;
    font-weight: 500;
    transition: color .15s ease;
}

    .auth-card a:hover {
        color: #5b21b6;
    }

/* =========================
   CHECKBOX
========================= */

.form-check-input:checked {
    background-color: #7c3aed;
    border-color: #7c3aed;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 992px) {

    .auth-layout {
        min-height: 100vh;
    }

    .auth-left {
        display: none;
    }

    .auth-right {
        width: 100%;
        min-width: 100%;
        min-height: 100vh;
        padding: 40px 24px;
        align-items: center;
    }

    .auth-card {
        max-width: 100%;
    }

    .auth-title {
        font-size: 40px;
    }
}

/* =========================
   SMALL MOBILE
========================= */

@media (max-width: 576px) {

    .auth-right {
        padding: 32px 20px;
    }

    .auth-title {
        font-size: 34px;
    }

    .auth-subtitle {
        font-size: 15px;
    }

    .auth-logo {
        width: 64px;
        height: 64px;
        font-size: 28px;
    }
}

/* =========================
   FLOATING CARDS
========================= */

.auth-floating {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.12);
    backdrop-filter: blur(18px);
    border-radius: 22px;
    padding: 16px 18px;
    box-shadow: 0 24px 50px rgba(0,0,0,.12);
    animation: authFloating 4s ease-in-out infinite;
    max-width: 280px;
}

.auth-floating-1 {
    top: 40px;
    right: 40px;
}

.auth-floating-2 {
    bottom: 40px;
    left: 120px;
    animation-delay: 1s;
}

.auth-floating-3 {
    top: 220px;
    right: 20px;
    animation-delay: 2s;
}

.auth-floating-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(255,255,255,.16);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

    .auth-floating-icon.success {
        background: rgba(34,197,94,.18);
    }

.auth-floating-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.auth-floating-text {
    font-size: 14px;
    opacity: .88;
}

@keyframes authFloating {

    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 992px) {

    .auth-floating {
        display: none;
    }
}

/* =========================
   CARD ENTRANCE
========================= */

.auth-card {
    animation: authCardEnter .5s ease;
}

@keyframes authCardEnter {

    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   AUTH FOOTER
========================= */

.auth-footer {
    margin-top: 28px;
    text-align: center;
    font-size: 13px;
    color: #9ca3af;
}

/* =========================
   DIVIDER
========================= */

.auth-divider {
    position: relative;
    margin: 28px 0;
    text-align: center;
}

    .auth-divider::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        height: 1px;
        background: rgba(229,231,235,.9);
    }

    .auth-divider span {
        position: relative;
        z-index: 2;
        padding: 0 16px;
        background: white;
        color: #9ca3af;
        font-size: 13px;
    }

/* =========================
   AUTH LANGUAGE SWITCHER
========================= */

.auth-language-switcher {
    position: fixed;
    top: 22px;
    right: 24px;
    z-index: 9999;
}

.auth-lang-btn {
    height: 38px;
    min-width: 72px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #ffffff;
    color: #111827;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 10px 24px rgba(15,23,42,.10);
    transition: all .18s ease;
}

    .auth-lang-btn:hover {
        background: #f9fafb;
        color: #6d28d9;
        transform: translateY(-1px);
        box-shadow: 0 14px 32px rgba(15,23,42,.14);
    }

.auth-alert {
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.45;
    margin-bottom: 16px;
}

.auth-alert-info {
    background: rgba(124, 58, 237, 0.10);
    color: #5b21b6;
    border: 1px solid rgba(124, 58, 237, 0.22);
}

.auth-alert-success {
    background: rgba(22, 163, 74, 0.10);
    color: #15803d;
    border: 1px solid rgba(22, 163, 74, 0.22);
}

.auth-otp-input {
    letter-spacing: 8px;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
}

.auth-secondary-form {
    margin-top: 14px;
    text-align: center;
}

.auth-link-button {
    border: 0;
    background: transparent;
    color: #7c3aed;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

    .auth-link-button:hover {
        text-decoration: underline;
    }

.auth-footer-text {
    margin-top: 18px;
    text-align: center;
    font-size: 14px;
    color: #64748b;
}

    .auth-footer-text a {
        color: #7c3aed;
        font-weight: 600;
        text-decoration: none;
    }

        .auth-footer-text a:hover {
            text-decoration: underline;
        }

.otp-code-input {
    font-size: 18px;
    font-weight: 600;
    text-align: center;
}

    .otp-code-input.has-value {
        letter-spacing: 8px;
        font-size: 22px;
        font-weight: 700;
    }

    .otp-code-input::placeholder {
        color: #94a3b8;
        letter-spacing: 8px;
        font-size: 22px;
        font-weight: 700;
    }