/* ==========================================================================
   Utsav Poster / Modern Login UI Styles
   Matches Reference: Poster grid background with deep blue overlay,
   floating logo tab, clean white card, orange continue button, google button
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #082a4a url(../images/loginbg.jpg) center center / cover no-repeat fixed;
    min-height: 100vh;
    font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    position: relative;
    overflow-x: hidden;
    color: #1e293b;
}

/* Deep cyan-blue tint overlay - uniform, no blur, posters clearly visible */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(6, 42, 76, 0.82);
    z-index: 1;
}

.auth-page-wrapper {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    padding: 80px 16px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-container {
    width: 100%;
    max-width: 470px;
    position: relative;
}

/* White Card with Floating Notch */
.auth-card {
    background: #ffffff !important;
    border: none !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.4) !important;
    padding: 36px 36px 32px !important;
    position: relative;
    animation: authSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes authSlideUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Floating Top Logo Tab */
.auth-top-tab {
    position: absolute;
    top: -66px;
    left: 50%;
    transform: translateX(-50%);
    width: 142px;
    height: 74px;
    background: #ffffff;
    border-radius: 14px 14px 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 6px;
    z-index: 5;
    text-decoration: none;
    box-shadow: 0 -8px 20px -6px rgba(0, 0, 0, 0.18);
}

.auth-flame-icon {
    width: 44px;
    height: auto;
    object-fit: contain;
    margin-bottom: 2px;
    display: block;
}

.auth-brand-text {
    font-size: 11.5px;
    color: #111827;
    letter-spacing: 0.5px;
    font-family: 'Poppins', -apple-system, sans-serif;
    line-height: 1;
    white-space: nowrap;
}

.auth-brand-text strong {
    font-weight: 800;
}

/* Card Header */
.auth-title {
    font-size: 25px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 18px;
    letter-spacing: -0.3px;
    text-align: left;
}

.auth-input-label {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
    display: block;
    text-align: left;
}

/* Phone Input Row */
.auth-phone-row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 22px;
}

/* Country Picker Dropdown */
.country-picker {
    position: relative;
    flex-shrink: 0;
}

.country-selected {
    height: 48px;
    padding: 0 12px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    font-size: 14.5px;
    font-weight: 600;
    color: #1e293b;
    transition: border-color 0.2s ease;
    user-select: none;
}

.country-selected:hover {
    border-color: #9ca3af;
}

.country-selected .country-flag-svg {
    border-radius: 2px;
    box-shadow: 0 0 1px rgba(0, 0, 0, 0.3);
}

.country-selected .country-caret {
    font-size: 11px;
    color: #6b7280;
    transition: transform 0.2s ease;
}

.country-picker.open .country-caret {
    transform: rotate(180deg);
}

.country-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    z-index: 1050;
    width: 220px;
    max-height: 240px;
    overflow-y: auto;
    display: none;
    padding: 6px;
}

.country-dropdown-menu.show {
    display: block;
}

.country-opt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    transition: background 0.15s ease;
}

.country-opt:hover {
    background: #f3f4f6;
    color: #111827;
}

.country-opt.selected {
    background: #fff7ed;
    color: #ea580c;
    font-weight: 600;
}

/* Mobile Text Input */
.mobile-text-input {
    flex: 1;
    height: 48px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0 14px;
    font-size: 14.5px;
    font-weight: 500;
    color: #111827;
    font-family: inherit;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.mobile-text-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.mobile-text-input:focus {
    border-color: #F36F21;
    box-shadow: 0 0 0 3px rgba(243, 111, 33, 0.12);
}

/* General Auth Form Input */
.auth-form-input {
    width: 100%;
    height: 48px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0 14px;
    font-size: 14.5px;
    font-weight: 500;
    color: #111827;
    font-family: inherit;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.auth-form-input:focus {
    border-color: #F36F21;
    box-shadow: 0 0 0 3px rgba(243, 111, 33, 0.12);
}

/* Vibrant Orange CONTINUE Button */
.btn-auth-continue {
    width: 100%;
    height: 48px;
    background: #F36F21;
    color: #ffffff !important;
    border: none;
    border-radius: 50px;
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(243, 111, 33, 0.28);
}

.btn-auth-continue:hover {
    background: #ea5e0d;
    box-shadow: 0 6px 20px rgba(243, 111, 33, 0.42);
    transform: translateY(-1px);
}

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

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

/* Divider with OR */
.auth-divider {
    position: relative;
    text-align: center;
    margin: 22px 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e5e7eb;
    z-index: 1;
}

.auth-divider span {
    position: relative;
    z-index: 2;
    background: #ffffff;
    padding: 0 14px;
    font-size: 12px;
    font-weight: 600;
    color: #9ca3af;
    letter-spacing: 0.5px;
}

/* Light Grey Google Button */
.btn-auth-google {
    width: 100%;
    height: 48px;
    background: #f5f6f8;
    color: #1f2937 !important;
    border: 1px solid transparent;
    border-radius: 50px;
    font-size: 14.5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-auth-google:hover {
    background: #edf0f4;
    border-color: #e5e7eb;
    color: #111827 !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

/* OTP Box Inputs */
.otp-inputs-row {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 18px 0 20px;
}

.otp-box-input {
    width: 44px;
    height: 48px;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    color: #111827;
    background: #ffffff;
    transition: all 0.2s ease;
    outline: none;
}

.otp-box-input:focus {
    border-color: #F36F21;
    box-shadow: 0 0 0 3px rgba(243, 111, 33, 0.15);
}

/* Toggle Link for Email Login */
.auth-toggle-link {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-toggle-link:hover {
    color: #F36F21;
}

/* Terms note at footer */
.auth-terms-note {
    font-size: 11.5px;
    color: #9ca3af;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 0;
    line-height: 1.5;
}

.auth-terms-note a {
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
}

.auth-terms-note a:hover {
    color: #F36F21;
}

/* Alert Styling */
.auth-card .alert {
    border-radius: 8px;
    font-size: 13px;
    padding: 10px 14px;
    margin-bottom: 16px;
}

/* Responsive */
@media (max-width: 576px) {
    .auth-page-wrapper {
        padding: 70px 14px 20px;
    }
    .auth-card {
        padding: 30px 20px 24px !important;
        border-radius: 18px !important;
    }
    .auth-title {
        font-size: 22px;
        margin-bottom: 16px;
    }
    .auth-top-tab {
        width: 124px;
        height: 64px;
        top: -58px;
    }
    .auth-flame-icon {
        width: 38px;
    }
    .auth-brand-text {
        font-size: 10.5px;
    }
    .otp-box-input {
        width: 38px;
        height: 44px;
        font-size: 18px;
    }
}