/* ===== QUB AUTH — Unified CSS ===== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

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

body {
    font-family: 'Poppins', sans-serif;
    background: #ffffff;
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 0;
}

.form-container {
    width: 100%;
    max-width: 430px;
    min-height: 100vh;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

/* ===== HERO ===== */
.hero-section {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}
.hero-image {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: brightness(0.78);
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.05) 0%,
        rgba(0,0,0,0.18) 55%,
        rgba(255,255,255,1) 100%
    );
}

/* ===== LOGO ===== */
.logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: -50px;
    position: relative;
    z-index: 10;
}
.logo-circle {
    width: 92px; height: 92px;
    border-radius: 50%;
    border: 4px solid #fff;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(0,0,0,0.65);
    display: flex;
    align-items: center;
    justify-content: center;
}
.logo-circle img { width: 100%; height: 100%; object-fit: cover; }
.logo-placeholder {
    width: 100%; height: 100%;
    background: radial-gradient(circle at top, #f6d9a7, #b97735);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; font-weight: 800; color: #fff; letter-spacing: -1px;
}
.brand-name {
    margin-top: 9px;
    font-size: 21px; font-weight: 800;
    color: #f6e4c5; letter-spacing: 4px;
    text-transform: uppercase;
}

/* ===== TABS (SIMPLE, NO CARD) ===== */
.auth-card {
    margin: 12px 16px 0;
    padding: 0 0 24px;
}

.tab-switcher {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-bottom: 16px;
}
.tab-btn {
    position: relative;
    padding: 4px 0;
    border: none;
    background: transparent;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #9ca3af;
    cursor: pointer;
    text-decoration: none;
}
.tab-btn.active {
    color: #111827;
}
.tab-btn.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 2px;
    border-radius: 999px;
    background: #111827;
}

/* ===== FORM BODY ===== */
.form-body {
    padding: 0 16px 32px;
    flex: 1;
}

/* ===== ALERTS ===== */
.alert {
    display: flex; align-items: flex-start; gap: 10px;
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px; font-weight: 500; line-height: 1.5;
}
.alert-icon { font-size: 15px; flex-shrink: 0; margin-top: 1px; }
.alert-error, .alert-danger {
    background: #fef2f2; border: 1px solid #fca5a5; color: #dc2626;
}
.alert-success {
    background: #f0fdf4; border: 1px solid #86efac; color: #16a34a;
}
.alert-warning {
    background: #fffbeb; border: 1px solid #fcd34d; color: #d97706;
}
.error-list { margin: 5px 0 0 16px; padding: 0; }
.error-list li { margin-bottom: 2px; }

/* ===== INPUT WRAPPER ===== */
.input-wrapper { margin-bottom: 15px; }

.form-label {
    display: block;
    font-size: 13px; font-weight: 600;
    color: #2d4a38; margin-bottom: 6px; letter-spacing: 0.2px;
}

/* position:relative container for icons */
.input-field-wrap { position: relative; }

/* ===== ALL INPUTS — base style ===== */
input[type="email"],
input[type="text"],
input[type="password"],
input[type="tel"],
input[type="number"],
select,
.form-control {
    display: block;
    width: 100%;
    height: 48px;
    padding: 0 46px 0 44px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #111827;
    background: #f9fafb;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
input[type="email"]:focus,
input[type="text"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
select:focus,
.form-control:focus {
    border-color: #3b82f6;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.18);
}
input::placeholder,
.form-control::placeholder { color: #9ca3af; font-weight: 400; }

/* Hide built-in browser password reveal icon (so only our right eye shows) */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none;
}

/* ===== ICONS ===== */
.input-icon {
    position: absolute;
    left: 14px; top: 50%;
    transform: translateY(-50%);
    color: #9ca3af; font-size: 16px;
    z-index: 2; pointer-events: none;
}
.input-icon-right {
    position: absolute;
    right: 14px; top: 50%;
    transform: translateY(-50%);
    color: #9ca3af; font-size: 16px;
    z-index: 2; cursor: pointer;
    transition: color 0.2s;
}
.input-icon-right:hover { color: #4b5563; }

/* ===== WHATSAPP / PHONE ROW ===== */
.whatsapp-wrapper {
    display: flex;
    align-items: stretch;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
    background: #f9fafb;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.whatsapp-wrapper:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.18);
}

/* Country code button */
.country-code {
    display: flex; align-items: center; gap: 5px;
    padding: 0 10px 0 14px;
    border-right: 1px solid #e5e7eb;
    background: #f3f4f6;
    min-width: 88px; flex-shrink: 0;
    cursor: pointer; user-select: none;
    transition: background 0.15s;
}
.country-code:hover { background: #e5e7eb; }
.country-flag-selected { font-size: 18px; line-height: 1; }
.country-code-text {
    font-size: 13px; font-weight: 700;
    color: #111827; white-space: nowrap;
}
.chevron-icon { font-size: 11px; color: #9ca3af; }

/* Phone number input — FULL RESET so text is always visible */
#phoneFieldContainer {
    flex: 1;
    display: flex;
    align-items: center;
    min-width: 0;
}
#phoneFieldContainer input[type="tel"],
#phoneFieldContainer input[type="text"],
#phoneFieldContainer input[type="number"] {
    /* strip inherited wrapper border/radius */
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    background: transparent !important;
    color: #111827 !important;
    /* override the left-icon padding — no icon inside this field */
    padding: 0 14px !important;
    height: 48px;
    width: 100%;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 400;
}
#phoneFieldContainer input::placeholder { color: #a8c4b4 !important; }

/* ===== ERROR MESSAGE ===== */
.error-message {
    display: flex; align-items: center; gap: 5px;
    margin-top: 6px;
    font-size: 12px; color: #dc2626; font-weight: 500; line-height: 1.4;
}
.error-message i { font-size: 13px; flex-shrink: 0; }

/* ===== FORGOT PASSWORD ===== */
.forgot-link-wrap { text-align: right; margin-top: 7px; }
.forgot-link {
    font-size: 12.5px; font-weight: 500;
    color: #2563eb; text-decoration: none;
    transition: opacity 0.2s;
}
.forgot-link:hover { opacity: .7; text-decoration: underline; }

/* ===== CHECKBOX ===== */
.checkbox-wrapper {
    display: flex; align-items: flex-start; gap: 10px;
    margin: 14px 0 20px;
}
.custom-checkbox {
    width: 18px; height: 18px;
    border: 2px solid #2563eb;
    border-radius: 5px; cursor: pointer;
    accent-color: #2563eb;
    flex-shrink: 0; margin-top: 2px;
}
.checkbox-label {
    font-size: 12.5px; color: #4a6a5a; line-height: 1.65; cursor: pointer;
}
.checkbox-label a {
    color: #2563eb; font-weight: 600; text-decoration: none;
}
.checkbox-label a:hover { text-decoration: underline; }

/* ===== AUTH BUTTON ===== */
.auth-btn {
    width: 100%; height: 50px;
    background: #111827;
    color: #fff;
    border: none; border-radius: 999px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px; font-weight: 700;
    letter-spacing: 0.4px; cursor: pointer;
    margin-top: 8px;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 14px rgba(15,23,42,0.25);
}
.auth-btn:hover {
    background: #020617;
    box-shadow: 0 6px 18px rgba(15,23,42,0.3);
    transform: translateY(-1px);
}
.auth-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(26,107,60,0.3);
}

/* ===== BOTTOM LINK ===== */
.bottom-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 13px;
    color: #6b7280;
    width: 100%;
    text-align: center;
}
.bottom-link a {
    color: #111827; font-weight: 600; text-decoration: none;
}
.bottom-link a:hover { text-decoration: underline; }

.bottom-whatsapp-icon {
    font-size: 20px;
    color: #22c55e;
}

.header { display: none; }