/* ===========================================================
   ICACON 2027 — auth.css
   Login / Register page: tabbed card, form fields, and the
   show/hide password toggle button.
   =========================================================== */

.auth-section {
    background: var(--cream);
    min-height: 100vh;
    padding: 130px 0 70px;
    display: flex;
    align-items: center;
}

.auth-wrap {
    max-width: 760px;
    margin: 0 auto;
}

.auth-head {
    text-align: center;
    margin-bottom: 28px;
}

.auth-head h2 {
    color: var(--navy);
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    font-weight: 700;
    margin-top: 8px;
}

.auth-head p {
    color: #5b6685;
    margin-top: 8px;
}

.auth-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 20px 44px rgba(13, 44, 92, .08);
    overflow: hidden;
}

/* ----- Tabs ----- */
.auth-tabs {
    display: flex;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
}

.auth-tab {
    flex: 1;
    border: none;
    background: transparent;
    padding: 18px 12px;
    font-family: 'Inter';
    font-weight: 700;
    font-size: .92rem;
    color: #5b6685;
    cursor: pointer;
    transition: color .2s ease, background .2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-tab i {
    font-size: .85rem;
}

.auth-tab.active {
    background: #fff;
    color: var(--navy);
    box-shadow: inset 0 -3px 0 var(--orange);
}

.auth-tab:hover:not(.active) {
    color: var(--navy);
    background: rgba(27, 79, 145, .05);
}

/* ----- Panels ----- */
.auth-panel {
    display: none;
    padding: 36px 40px 40px;
}

.auth-panel.active {
    display: block;
}

.auth-panel h3 {
    font-family: 'Fraunces';
    font-size: 1.3rem;
    color: var(--navy);
    margin-bottom: 4px;
}

.auth-panel .sub {
    color: #5b6685;
    font-size: .88rem;
    margin-bottom: 24px;
}

.auth-panel .required-note {
    color: #0F2A52;
    font-size: 0.85rem;
    font-weight: 500;
}

/* ----- Form fields ----- */
.auth-panel label {
    font-size: .8rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 6px;
    display: inline-block;
}

.auth-panel label .req {
    font-weight: 500;
    color: #cc0523;
    text-transform: none;
}

.auth-panel label .opt {
    font-weight: 500;
    color: #8a92ab;
    text-transform: none;
}

.auth-panel .form-control,
.auth-panel .form-select {
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: .92rem;
    background-color: #fff;
}

.auth-panel .form-control {
    padding: 11px 14px;
}

/* Don't touch `background` shorthand here — Bootstrap's caret
   arrow is a background-image on .form-select, and overriding
   the whole shorthand (as background:#fff would) wipes it out. */
.auth-panel .form-select {
    padding: 11px 36px 11px 14px;
}

.auth-panel .form-control::placeholder {
    color: #a8b0c4;
}

.auth-panel .form-control:focus,
.auth-panel .form-select:focus {
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(27, 79, 145, .12);
}

.auth-panel textarea.form-control {
    min-height: 90px;
    resize: vertical;
}

/* ----- Password field + show/hide toggle ----- */
.pw-field {
    position: relative;
}

.pw-field .form-control {
    padding-right: 46px;
}

.pw-toggle {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 44px;
    border: none;
    background: transparent;
    color: #8a92ab;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: .95rem;
    transition: color .15s ease;
}

.pw-toggle:hover {
    color: var(--navy);
}

.pw-hint {
    font-size: .74rem;
    color: #8a92ab;
    margin-top: 5px;
}

/* ----- Forgot password link (login panel) ----- */
.forgot-row {
    display: flex;
    justify-content: flex-end;
    margin: -6px 0 18px;
}

.forgot-link {
    background: none;
    border: none;
    padding: 0;
    font-size: .82rem;
    font-weight: 600;
    color: var(--navy);
    cursor: pointer;
    transition: color .15s ease;
}

.forgot-link:hover {
    color: var(--orange);
    text-decoration: underline;
}

/* ----- Alerts ----- */
.auth-alert {
    border-radius: 12px;
    padding: 14px 16px;
    font-size: .86rem;
    margin-bottom: 20px;
}

.auth-alert.error {
    background: rgba(216, 66, 66, .08);
    border: 1px solid rgba(216, 66, 66, .25);
    color: #a8322f;
}

.auth-alert.error ul {
    margin: 4px 0 0;
    padding-left: 18px;
}

.auth-alert.success {
    background: rgba(15, 138, 108, .08);
    border: 1px solid rgba(15, 138, 108, .25);
    color: var(--teal);
}

/* ----- Submit ----- */
.auth-submit {
    background: var(--orange);
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 13px 30px;
    font-weight: 700;
    font-size: .92rem;
    width: 100%;
    margin-top: 8px;
    transition: background .2s ease, transform .2s ease;
}

.auth-submit:hover {
    background: var(--orange-deep);
    transform: translateY(-1px);
}

.auth-switch {
    text-align: center;
    margin-top: 16px;
    font-size: .85rem;
    color: #5b6685;
}

.auth-switch a,
.auth-switch button {
    color: var(--orange);
    font-weight: 700;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
    .auth-section {
        padding: 110px 0 50px;
    }

    .auth-panel {
        padding: 28px 20px 30px;
    }

    .auth-tab {
        font-size: .8rem;
        padding: 15px 8px;
    }

    .auth-tab span {
        display: none;
    }
}