/* ============================================================
   register.css – Auth pages (register, login)
   Shared styles for index.php + register.php
   ============================================================ */

/* ── Page shell ─────────────────────────────────────────────── */
body.auth-page {
    min-height: 100vh;
    padding-bottom: 0;
    background: linear-gradient(160deg, #05367B 0%, #1a4eb5 50%, #eef1f8 100%);
    display: flex;
    flex-direction: column;
}

/* ── Logo header ─────────────────────────────────────────────── */
.auth-header {
    text-align: center;
    padding: 36px 20px 0;
}

.auth-logo {
    max-width: 160px;
    height: auto;
    display: inline-block;
    /* Subtle white glow so logo pops on the dark gradient */
    filter: drop-shadow(0 4px 16px rgba(255,255,255,0.18));
}

/* ── Outer wrap ──────────────────────────────────────────────── */
.auth-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 28px 16px 40px;
}

/* ── Card ────────────────────────────────────────────────────── */
.auth-card {
    width: 100%;
    max-width: 460px;
    background: #FFFFFF;
    border-radius: 24px;
    box-shadow:
        0 2px 4px rgba(5,54,123,0.06),
        0 12px 40px rgba(5,54,123,0.16);
    overflow: hidden;
}

/* ── Card header band ────────────────────────────────────────── */
.auth-card-header {
    background: linear-gradient(135deg, #05367B, #305CDE);
    padding: 28px 28px 24px;
    text-align: center;
}

.auth-title {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: -0.02em;
}

.auth-subtitle {
    margin: 0;
    font-size: 14px;
    color: rgba(255,255,255,0.78);
    line-height: 1.5;
}

/* ── Alert ───────────────────────────────────────────────────── */
.auth-alert {
    margin: 20px 24px 0;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
}

.auth-alert--error {
    background: #FEE2E2;
    color: #B91C1C;
    border: 1px solid #FECACA;
}

.auth-alert--success {
    background: #DCFCE7;
    color: #15803D;
    border: 1px solid #BBF7D0;
}

.auth-alert a {
    color: inherit;
    text-decoration: underline;
}

/* ── Form ────────────────────────────────────────────────────── */
.auth-form {
    padding: 24px 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row--split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    letter-spacing: 0.01em;
}

.required {
    color: #EF4444;
}

.form-input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #D1D5DB;
    border-radius: 12px;
    font-size: 15px;
    color: #111827;
    background: #F9FAFB;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    outline: none;
    -webkit-appearance: none;
}

.form-input::placeholder {
    color: #9CA3AF;
}

.form-input:focus {
    border-color: #305CDE;
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(48,92,222,0.14);
}

/* ── Submit button ───────────────────────────────────────────── */
.auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    margin-top: 4px;
    background: linear-gradient(135deg, #05367B, #305CDE);
    color: #FFFFFF;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    letter-spacing: 0.01em;
    box-shadow: 0 4px 16px rgba(5,54,123,0.28);
    transition: opacity 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
}

.auth-btn:hover {
    opacity: 0.92;
    box-shadow: 0 6px 22px rgba(5,54,123,0.36);
}

.auth-btn:active {
    transform: scale(0.98);
}

/* ── Footer text ─────────────────────────────────────────────── */
.auth-footer-text {
    text-align: center;
    padding: 0 24px 22px;
    margin: 0;
    font-size: 14px;
    color: #6B7280;
}

.auth-link {
    color: #305CDE;
    font-weight: 700;
    text-decoration: none;
}

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

/* ── Event label below card ──────────────────────────────────── */
.auth-event-label {
    margin-top: 20px;
    font-size: 12px;
    color: rgba(255,255,255,0.55);
    text-align: center;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ── Form sections ───────────────────────────────────────────── */
.form-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 14px;
}

.form-section-label {
    font-size: 11px;
    font-weight: 800;
    color: #05367B;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ── Carrier / Distributor toggle ────────────────────────────── */
.type-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.type-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 10px;
    background: #FFFFFF;
    border: 2px solid #D1D5DB;
    border-radius: 14px;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
    user-select: none;
}

.type-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.type-option.is-selected {
    border-color: #305CDE;
    background: #EEF3FF;
    box-shadow: 0 0 0 3px rgba(48,92,222,0.14);
}

.type-icon {
    font-size: 24px;
    line-height: 1;
}

.type-label {
    font-size: 14px;
    font-weight: 700;
    color: #374151;
}

.type-option.is-selected .type-label {
    color: #05367B;
}

.type-confirm {
    margin-top: 2px;
    padding: 10px 14px;
    background: #EEF3FF;
    border: 1px solid #C7D7F9;
    border-radius: 10px;
    font-size: 14px;
    color: #374151;
}

.type-confirm strong {
    color: #305CDE;
}

/* ── Radio groups (Yes/No etc) ───────────────────────────────── */
.radio-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

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

.radio-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #305CDE;
    cursor: pointer;
}

.radio-label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

/* ── Select & Textarea ───────────────────────────────────────── */
.form-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
    -webkit-appearance: none;
    appearance: none;
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.5;
}

/* ── Org field prompt (shown before type is chosen) ─────────── */
.org-prompt {
    margin: 0;
    font-size: 13px;
    color: #9CA3AF;
    font-style: italic;
}

/* ── Hint text ───────────────────────────────────────────────── */
.form-hint {
    font-size: 12px;
    color: #9CA3AF;
    margin-top: -4px;
}

/* ── Registration CTA Button (prominent on login page) ────────── */
.registration-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #10B981, #059669);
    color: #FFFFFF;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    letter-spacing: 0.01em;
    box-shadow: 0 4px 16px rgba(16,185,129,0.32);
    transition: opacity 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
}

.registration-cta-button:hover {
    opacity: 0.92;
    box-shadow: 0 6px 22px rgba(16,185,129,0.4);
    transform: translateY(-2px);
}

.registration-cta-button:active {
    transform: scale(0.98);
}

/* ── Registration Closed Banner ──────────────────────────────── */
.registration-closed-banner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    background: #FEE2E2;
    color: #B91C1C;
    border: 1.5px solid #FECACA;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
}

/* ── Registration Coming Soon Banner ─────────────────────────── */
.registration-coming-soon-banner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    background: #FEF3C7;
    color: #92400E;
    border: 1.5px solid #FDE68A;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 480px) {
    .auth-header {
        padding-top: 28px;
    }

    .auth-logo {
        max-width: 130px;
    }

    .auth-wrap {
        padding: 20px 12px 32px;
    }

    .auth-card-header {
        padding: 22px 20px 18px;
    }

    .auth-title {
        font-size: 19px;
    }

    .auth-form {
        padding: 20px 16px 16px;
        gap: 14px;
    }

    .form-row--split {
        grid-template-columns: 1fr;
    }

    .auth-footer-text {
        padding: 0 16px 18px;
    }
}
