/* ============================================
   Auth Layout - 2 Column Split
   ============================================ */

.auth-wrapper {
    display: flex;
    min-height: 100vh;
    background: #f8f9fa;
}

/* --- Left Panel (Gradient + Branding) --- */

.auth-left {
    flex: 0 0 60%;
    position: relative;
    background: linear-gradient(135deg, #000000 0%, #111111 40%, #1a1a1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.auth-left::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.04) 0%, transparent 50%);
    z-index: 1;
}

.auth-left::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.06);
    top: -100px;
    right: -200px;
    z-index: 1;
}

.auth-left-overlay {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
}

.auth-logo-left {
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

/* --- Right Panel (Form) --- */

.auth-right {
    flex: 0 0 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: #ffffff;
}

.auth-right-inner {
    width: 100%;
    max-width: 420px;
}

.auth-logo-right {
    height: 40px;
    display: none;
}

/* --- Auth Form --- */

.auth-form {
    width: 100%;
}

.auth-heading {
    font-size: 1.6rem;
    font-weight: 700;
    color: #111111;
    margin-bottom: 0.35rem;
    letter-spacing: -0.02em;
}

.auth-subheading {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}

/* --- Fields --- */

.auth-field {
    margin-bottom: 1.25rem;
}

.auth-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: #333333;
    margin-bottom: 0.4rem;
    letter-spacing: 0.04em;
}

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

.auth-input-wrapper i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #adb5bd;
    font-size: 1rem;
    pointer-events: none;
    transition: color 0.2s;
}

.auth-input-wrapper .form-control {
    padding-left: 42px;
    border-radius: 10px;
    border: 1.5px solid #e2e5e9;
    height: 48px;
    font-size: 0.95rem;
    background: #fafafa;
    transition: all 0.2s;
}

.auth-input-wrapper .form-control::placeholder {
    color: #c4c9cf;
}

.auth-input-wrapper .form-control:focus {
    border-color: #111111;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.auth-input-wrapper:focus-within i {
    color: #111111;
}

.auth-field-error {
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 0.35rem;
    padding-left: 2px;
}

.auth-field .form-check {
    padding-top: 0.25rem;
}

.auth-field .form-check-input {
    border-radius: 4px;
    border: 1.5px solid #ccc;
    width: 1.1em;
    height: 1.1em;
}

.auth-field .form-check-input:checked {
    background-color: #111111;
    border-color: #111111;
}

.auth-field .form-check-label {
    font-size: 0.875rem;
    color: #555;
}

/* --- Alerts --- */

.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.auth-alert i {
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.auth-alert-danger {
    background: #fdf2f2;
    color: #9b1c1c;
    border: 1px solid #fde8e8;
}

.auth-alert-danger i {
    color: #dc3545;
}

.auth-alert-info {
    background: #f0f7ff;
    color: #1e4d8c;
    border: 1px solid #dbeafe;
}

.auth-alert-info i {
    color: #3b82f6;
}

/* --- Button --- */

.auth-btn {
    width: 100%;
    border-radius: 10px;
    height: 48px;
    font-size: 0.95rem;
    font-weight: 600;
    background: #111111;
    color: #ffffff;
    border: none;
    margin-top: 0.5rem;
    transition: all 0.2s;
    letter-spacing: 0.01em;
}

.auth-btn:hover {
    background: #222222;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.auth-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.auth-btn:disabled {
    background: #333333;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* --- Social login buttons --- */

.auth-social .auth-btn {
    background: #ffffff;
    color: #1f1f1f;
    border: 1px solid #dadce0;
}

.auth-social .auth-btn:hover {
    background: #f7f8f9;
    color: #1f1f1f;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

/* --- Links --- */

.auth-link-small {
    font-size: 0.8rem;
    color: #6c757d;
    text-decoration: none;
    transition: color 0.2s;
}

.auth-link-small:hover {
    color: #111111;
}

.auth-link-back {
    font-size: 0.875rem;
    color: #6c757d;
    text-decoration: none;
    transition: color 0.2s;
}

.auth-link-back:hover {
    color: #111111;
}

/* --- Responsive --- */

@media (max-width: 991.98px) {
    .auth-left {
        display: none;
    }

    .auth-right {
        flex: 0 0 100%;
    }

    .auth-logo-right {
        display: inline-block;
    }
}

@media (max-width: 575.98px) {
    .auth-right {
        padding: 1.5rem;
    }

    .auth-right-inner {
        max-width: 100%;
    }

    .auth-heading {
        font-size: 1.35rem;
    }
}
