/* Auth Login Page Styles — Tailwind companion */

/* Override global footer styles for auth pages */
footer.footer-auth {
    background-color: transparent;
    color: inherit;
    padding: 0;
}

/* Custom arrow for DOB select dropdowns */
select.phone-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 36px !important;
}

/* Message box states (used by JS) */
.form-message {
    display: none;
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid transparent;
}

.form-message.success {
    display: block;
    color: #067647;
    border-color: #a6f4c5;
    background: #ecfdf3;
}

.form-message.error {
    display: block;
    color: #b42318;
    border-color: #fecdca;
    background: #fef3f2;
}

.form-message.info {
    display: block;
    color: #175cd3;
    border-color: #b2ddff;
    background: #eff8ff;
}

/* Primary action buttons (liquid glass, same brand gradient) */
.btn-continue {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: linear-gradient(135deg, #13618C 0%, #297B35 100%);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 4px !important;
    cursor: pointer;
    font-family: 'Plus Jakarta Sans', sans-serif;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        inset 0 -12px 16px -8px rgba(0, 0, 0, 0.18),
        inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

/* Glossy top sheen — the "glass" highlight sitting on top of the gradient */
.btn-continue::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.35) 0%,
        rgba(255, 255, 255, 0.12) 35%,
        rgba(255, 255, 255, 0) 60%
    );
    pointer-events: none;
}

/* Soft roaming specular highlight for extra glass depth */
.btn-continue::after {
    content: '';
    position: absolute;
    top: -60%;
    left: -20%;
    width: 55%;
    height: 220%;
    z-index: -1;
    background: radial-gradient(closest-side, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0) 70%);
    transform: rotate(20deg);
    opacity: 0.7;
    pointer-events: none;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.btn-continue:hover {
    transform: translateY(-1px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.45),
        inset 0 -12px 16px -8px rgba(0, 0, 0, 0.16),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1),
        0 6px 18px rgba(19, 97, 140, 0.28);
}

.btn-continue:hover::after {
    transform: rotate(20deg) translateX(35%);
    opacity: 0.9;
}

.btn-continue:active {
    transform: translateY(0);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        inset 0 -8px 12px -6px rgba(0, 0, 0, 0.22),
        inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.btn-continue:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Responsive Design */
@media (max-width: 1023px) {
    .login-container {
        grid-template-columns: 1fr;
    }
    .login-left {
        display: none;
    }
}

/* Auth pages header responsive overrides */
@media (max-width: 768px) {
    .top-bar {
        display: none;
    }
    .container.header-flex {
        flex-wrap: wrap;
        gap: 10px;
    }
    .search-bar {
        order: 3;
        width: 100%;
        flex-basis: 100%;
    }
    .search-bar input {
        font-size: 12px;
    }
    .header-icons {
        margin-left: auto;
    }
    /* Space at bottom so content doesn't hide behind fixed nav */
    body {
        padding-bottom: 72px;
    }
}

/* intl-tel-input overrides */
.iti {
    width: 100%;
}

/* Match the icon-compartment look of the email field: a divider
   separating the flag/dial-code selector from the number itself. */
.iti__selected-country {
    background: transparent;
    position: relative;
    padding-inline: 14px 12px;
}

.iti__selected-country::after {
    content: '';
    position: absolute;
    top: 12px;
    bottom: 12px;
    right: 0;
    width: 1px;
    background: rgba(226, 232, 240, 0.7);
}

.iti__selected-dial-code {
    font-size: 14px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.iti__country-list {
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    max-height: 220px;
}

.iti__country-list .iti__country:hover,
.iti__country-list .iti__country--highlight {
    background-color: #f0f7ff;
}

.iti__search-input {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    border-radius: 8px;
    padding: 8px 12px;
}
