/* ============================================================
   AUTH.CSS — Glassmorphism 2.0 Auth Pages
   Thy Favour Hotel • Sign In / Sign Up
   ============================================================ */

/* ── Page Shell ── */
body.auth-page {
    background: #080e1f;
    color: #ffffff;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Animated gradient orbs */
body.auth-page::before {
    content: '';
    position: fixed;
    top: -20%;
    right: -15%;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.12) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
    animation: orbFloat 8s ease-in-out infinite alternate;
}

body.auth-page::after {
    content: '';
    position: fixed;
    bottom: -20%;
    left: -15%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(75, 100, 200, 0.10) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
    animation: orbFloat 10s ease-in-out infinite alternate-reverse;
}

@keyframes orbFloat {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(30px, 20px) scale(1.08); }
}

/* ── Background Image Section ── */
.auth-section {
    position: relative;
    min-height: 100vh;
    padding: 100px 0 60px;
    display: flex;
    align-items: center;
    background: #080e1f;
}

.auth-section.has-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(8, 14, 31, 0.92) 0%, rgba(20, 30, 65, 0.85) 100%);
    z-index: 1;
}

.auth-section .container {
    position: relative;
    z-index: 2;
}

/* ── Split Layout ── */
.auth-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - 100px);
    gap: 0;
}

.auth-visual {
    position: relative;
    overflow: hidden;
    border-radius: 24px 0 0 24px;
    display: flex;
    align-items: flex-end;
    padding: 50px;
}

.auth-visual-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.55);
    transition: transform 8s ease;
}

.auth-visual:hover .auth-visual-bg {
    transform: scale(1.05);
}

.auth-visual-content {
    position: relative;
    z-index: 1;
}

.auth-visual-content .star-row {
    margin-bottom: 16px;
}

.auth-visual-content .star-row i {
    color: #d4af37;
    font-size: 14px;
    margin-right: 3px;
}

.auth-visual-content h2 {
    font-family: 'Gilda Display', serif;
    color: #ffffff;
    font-size: 2.4rem;
    line-height: 1.2;
    margin-bottom: 12px;
}

.auth-visual-content p {
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
    margin-bottom: 24px;
}

.auth-visual-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50px;
    padding: 8px 18px;
    font-size: 0.85rem;
    color: #d4af37;
}

/* ── Auth Card (Glassmorphism) ── */
.auth-form-side {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 50px;
    background: rgba(255,255,255,0.015);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 0 24px 24px 0;
    border-left: 1px solid rgba(255,255,255,0.07);
}

.auth-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 48px 40px;
    box-shadow:
        0 32px 64px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    position: relative;
}

/* Gold top accent line */
.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
    border-radius: 0 0 4px 4px;
}

/* ── Header ── */
.auth-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 28px;
}

.auth-logo img {
    height: 55px;
    object-fit: contain;
    filter: brightness(1.1);
}

.auth-header {
    text-align: center;
    margin-bottom: 36px;
}

.auth-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #d4af37;
    margin-bottom: 12px;
}

.auth-eyebrow::before,
.auth-eyebrow::after {
    content: '';
    width: 24px;
    height: 1px;
    background: rgba(212, 175, 55, 0.4);
}

.auth-title {
    font-family: 'Gilda Display', serif;
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 8px;
    line-height: 1.2;
}

.auth-subtitle {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
}

/* ── Form Elements ── */
.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #d4af37;
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 16px;
    transition: color 0.3s;
    pointer-events: none;
    z-index: 1;
}

.auth-form .form-control {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px 48px 14px 44px;
    color: #ffffff;
    font-size: 0.95rem;
    font-family: 'Plus Jakarta Sans', 'Barlow', sans-serif;
    transition: all 0.3s ease;
    outline: none;
    -webkit-appearance: none;
}

.auth-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.auth-form .form-control:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.auth-form .form-control:focus + .input-icon,
.input-wrapper:focus-within .input-icon {
    color: #d4af37;
}

/* Password toggle */
.password-toggle {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    transition: color 0.3s;
    z-index: 1;
}

.password-toggle:hover {
    color: #d4af37;
}

/* ── Form Options Row ── */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.custom-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    background: rgba(255,255,255,0.05);
    cursor: pointer;
    accent-color: #d4af37;
}

.custom-checkbox label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    margin: 0;
    text-transform: none;
    letter-spacing: 0;
    cursor: pointer;
}

.forgot-password {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: color 0.3s;
}

.forgot-password:hover {
    color: #d4af37;
}

/* ── Submit Button ── */
.btn-auth {
    position: relative;
    width: 100%;
    background: linear-gradient(135deg, #d4af37 0%, #b8962e 100%);
    color: #080e1f;
    border: none;
    border-radius: 12px;
    padding: 16px 30px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.4);
}

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

.btn-auth:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

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

.btn-auth:hover .btn-shine {
    left: 150%;
}

.btn-auth .spinner-small {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(8, 14, 31, 0.3);
    border-top-color: #080e1f;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: none;
}

.btn-auth.loading .spinner-small { display: block; }
.btn-auth.loading span { opacity: 0.7; }

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

/* ── Divider ── */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
    color: rgba(255,255,255,0.25);
    font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.1);
}

/* ── Footer ── */
.auth-footer {
    text-align: center;
    margin-top: 24px;
    color: rgba(255,255,255,0.4);
    font-size: 0.9rem;
}

.auth-link {
    color: #d4af37;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.auth-link:hover {
    color: #f0d060;
    text-decoration: underline;
}

/* ── Trust Badges ── */
.auth-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.07);
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.35);
    font-size: 0.75rem;
}

.trust-badge i {
    color: #d4af37;
    font-size: 14px;
}

/* ── Password Strength ── */
.password-strength {
    margin-top: 8px;
}

.strength-bar {
    height: 3px;
    border-radius: 2px;
    background: rgba(255,255,255,0.1);
    margin-bottom: 4px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0;
    border-radius: 2px;
    transition: width 0.4s ease, background 0.4s ease;
}

.strength-fill.weak   { width: 33%; background: #e74c3c; }
.strength-fill.medium { width: 66%; background: #f39c12; }
.strength-fill.strong { width: 100%; background: #2ecc71; }

.strength-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
}

/* ── Toast Notifications ── */
.toast-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast-msg {
    background: rgba(20, 30, 60, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 14px 20px;
    min-width: 280px;
    max-width: 380px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    animation: toastIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    font-size: 0.9rem;
    color: #fff;
}

.toast-msg.toast-success { border-left: 3px solid #2ecc71; }
.toast-msg.toast-error   { border-left: 3px solid #e74c3c; }
.toast-msg.toast-info    { border-left: 3px solid #d4af37; }

.toast-icon { font-size: 18px; }
.toast-success .toast-icon { color: #2ecc71; }
.toast-error   .toast-icon { color: #e74c3c; }
.toast-info    .toast-icon { color: #d4af37; }

.toast-msg.fade-out {
    animation: toastOut 0.3s ease forwards;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(30px); }
}

/* ── Field Error ── */
.field-error {
    color: #e74c3c;
    font-size: 0.78rem;
    margin-top: 6px;
    display: none;
}

.field-error.visible { display: block; }

.form-control.has-error {
    border-color: rgba(231, 76, 60, 0.5);
}

/* ── Responsive ── */
@media (max-width: 991px) {
    .auth-split {
        grid-template-columns: 1fr;
    }

    .auth-visual {
        display: none;
    }

    .auth-form-side {
        border-radius: 0;
        border-left: none;
        padding: 30px 20px;
    }
}

@media (max-width: 575px) {
    .auth-card {
        padding: 36px 24px;
    }

    .auth-title {
        font-size: 1.7rem;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}
