@import url("fonts.css");

/* 1. Base Layout & Background */
html,
body.auth-body {
    height: 100%;
    overflow: hidden;
    margin: 0;
    font-family: 'Inter', system-ui, sans-serif;
}

body.auth-body {
    background-color: #F2F1EC; /* Warm Ivory White */

    /* Premium Radial Soft Glows */
    background-image:
        radial-gradient(circle at 15% 25%, rgba(199, 164, 106, 0.18) 0%, transparent 45%),
        radial-gradient(circle at 85% 15%, rgba(199, 164, 106, 0.10) 0%, transparent 45%);

    display: flex;
    align-items: center;
    justify-content: center;
}

/* 2. Main Content Container */
.auth-body .main-content {
    margin: 0 !important;
    padding: 1.5rem !important;
    width: 100%;
    max-width: 920px;
    flex: none;
    z-index: 10;
}

/* 3. Login Card Styling - Premium Two-Tone Glass Theme */
.auth-card {
    background: #ffffff; /* Pure White Card Body */
    border: 1px solid rgba(199, 164, 106, 0.25) !important; /* Gold Tint border */
    border-radius: 28px;
    box-shadow: 0 32px 72px -16px rgba(11, 13, 16, 0.12);
    position: relative;
    overflow: hidden;
    min-height: 580px;
    display: flex;
    flex-direction: column;
}

.auth-card > .row {
    flex-grow: 1;
    min-height: 580px;
}

/* Left Brand Column (Premium Ivory Style) */
.auth-brand-col {
    background-color: #F5F4F0;
    background-image:
        radial-gradient(ellipse at 30% 30%, rgba(199, 164, 106, 0.08) 0%, transparent 60%),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 28px,
            rgba(199, 164, 106, 0.04) 28px,
            rgba(199, 164, 106, 0.04) 29px
        );
    border-right: 1px solid rgba(140, 145, 150, 0.15);
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.auth-brand-col .text-secondary {
    color: #5A5E66 !important;
}

.auth-brand-col i.text-secondary {
    color: #8C9196 !important;
    transition: all 0.2s ease-in-out;
}

.auth-brand-col i.text-secondary:hover {
    color: #C7A46A !important;
    transform: scale(1.12);
}

/* Right Form Column (Content Light Style) */
.auth-form-col {
    padding: 3.5rem 4rem;
    background: #ffffff;
}

/* 4. Typography & Elements */
.auth-card h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: #0B0D10; /* Midnight Black */
    letter-spacing: -0.02em;
}

.auth-card .text-secondary {
    color: #5A5E66 !important;
}

/* Input Fields - Light Theme */
.auth-card .form-control {
    background-color: #ffffff;
    border: 1px solid rgba(140, 145, 150, 0.3);
    color: #0B0D10;
    padding: 1rem;
    border-radius: 14px;
    font-size: 0.95rem;
    transition: all 0.2s ease-in-out;
}

.auth-card .form-control:focus {
    background-color: #ffffff;
    border-color: #C7A46A; /* Gold */
    box-shadow: 0 0 0 4px rgba(199, 164, 106, 0.15);
    color: #0B0D10;
}

/* Floating Labels */
.form-floating>label {
    color: #5A5E66;
    padding-left: 1rem;
    background-color: transparent !important;
}

.form-floating>.form-control:focus~label,
.form-floating>.form-control:not(:placeholder-shown)~label {
    color: #C7A46A; /* Gold when active */
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

.form-floating>.form-control:focus~label::after,
.form-floating>.form-control:not(:placeholder-shown)~label::after {
    background-color: transparent !important;
}

/* Custom Autofill */
.auth-body input:-webkit-autofill,
.auth-body input:-webkit-autofill:hover,
.auth-body input:-webkit-autofill:focus {
    -webkit-text-fill-color: #0B0D10 !important;
    -webkit-box-shadow: 0 0 0px 1000px #ffffff inset !important;
    transition: background-color 5000s ease-in-out 0s !important;
}

/* Checkbox */
.form-check-input {
    background-color: #ffffff;
    border-color: rgba(140, 145, 150, 0.4);
    border-radius: 4px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: #C7A46A;
    border-color: #C7A46A;
}

/* Primary Button (Premium Gold Gradient with Glow) */
.auth-card .btn-primary {
    padding: 1rem;
    font-weight: 600;
    font-size: 1rem;
    background: linear-gradient(135deg, #C7A46A 0%, #D4AF72 100%);
    border: none;
    color: #0B0D10 !important; /* Midnight Black text for readability */
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(199, 164, 106, 0.3); /* Premium gold glow */
    transition: all 0.2s ease-in-out;
    position: relative;
    overflow: hidden;
}

.auth-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(199, 164, 106, 0.45);
    filter: brightness(1.08);
}

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

/* Social Login Buttons */
.btn-google {
    background-color: #ffffff;
    border: 1px solid rgba(140, 145, 150, 0.25);
    color: #0B0D10;
    border-radius: 14px;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

.btn-google:hover {
    background-color: #F9F8F6;
    border-color: rgba(140, 145, 150, 0.4);
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.btn-passkey {
    background-color: #ffffff;
    border: 1px solid rgba(199, 164, 106, 0.35);
    color: #0B0D10;
    border-radius: 14px;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

.btn-passkey:hover {
    background-color: #F9F8F6;
    border-color: rgba(199, 164, 106, 0.5);
    box-shadow: 0 4px 12px rgba(199, 164, 106, 0.08);
}

.btn-passkey i {
    color: #C7A46A !important;
}

/* Divider */
.auth-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: rgba(140, 145, 150, 0.15);
    z-index: 1;
}

.auth-divider span {
    position: relative;
    z-index: 2;
    background-color: #ffffff;
    padding: 0 12px;
    color: #8C9196;
    font-size: 0.85rem;
}

/* Links */
.auth-card a.text-primary {
    color: #C7A46A !important;
    transition: color 0.2s ease;
}

.auth-card a.text-primary:hover {
    color: #D4AF72 !important;
    text-decoration: underline !important;
}

/* Tooltips styling override */
.tooltip-inner {
    background-color: #0B0D10 !important;
    border: 1px solid rgba(199, 164, 106, 0.25);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    color: #F2F1EC !important;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.85rem;
    max-width: 280px;
}

.tooltip .tooltip-arrow::before {
    border-top-color: #0B0D10 !important;
}

.bs-tooltip-bottom .tooltip-arrow::before,
.bs-tooltip-auto[data-popper-placement^="bottom"] .tooltip-arrow::before {
    border-bottom-color: #0B0D10 !important;
}

/* Custom heights for forgot and reset screens to prevent large empty space */
.auth-card-forgot {
    min-height: 460px !important;
}
.auth-card-forgot > .row {
    min-height: 460px !important;
}

.auth-card-reset {
    min-height: 520px !important;
}
.auth-card-reset > .row {
    min-height: 520px !important;
}
