/* ======================================================
   GoTrip – Login / Sign Up Styles  (signup.css)
   ====================================================== */

/* ---- Page layout ---- */
.auth-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    font-family: 'Poppins', sans-serif;
}

/* ============================================================
   LEFT PANEL
   ============================================================ */
.auth-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 56px;
    background: #fff;
    overflow-y: auto;
}

/* Brand */
.auth-brand a {
    font-family: 'Satisfy', cursive;
    font-size: 1.8rem;
    background: linear-gradient(135deg, #ff5f6d, #ffc371);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
}

/* ---- Tab switcher ---- */
.auth-tabs {
    display: flex;
    background: #f5f5f5;
    border-radius: 12px;
    padding: 5px;
    margin-bottom: 28px;
    gap: 4px;
}

.tab-btn {
    flex: 1;
    padding: 11px 16px;
    border: none;
    background: transparent;
    border-radius: 9px;
    font-family: 'Poppins', sans-serif;
    font-size: .88rem;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    transition: all .3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.tab-btn.active {
    background: linear-gradient(135deg, #ff5f6d, #ffc371);
    color: #fff;
    box-shadow: 0 4px 14px rgba(255, 95, 109, .35);
}

.tab-btn:not(.active):hover {
    background: #ebebeb;
    color: #555;
}

/* ---- Form panels ---- */
.form-panel {
    display: none;
    animation: fadeSlideIn .35s ease;
}

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

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

/* ---- Titles ---- */
.auth-title {
    font-size: 1.85rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 5px;
}

.auth-subtitle {
    color: #888;
    font-size: .92rem;
    margin-bottom: 24px;
}

/* ---- Alert box ---- */
.alert {
    padding: 11px 16px;
    border-radius: 8px;
    font-size: .85rem;
    margin-bottom: 16px;
}

.alert-error {
    background: #fff1f1;
    border: 1px solid #fca5a5;
    color: #b91c1c;
}

.alert-success {
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #166534;
}

/* ---- Form groups ---- */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: .78rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: .6px;
}

.input-wrap {
    position: relative;
}

.input-wrap i.icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #bbb;
    font-size: .95rem;
    pointer-events: none;
}

.input-wrap input {
    width: 100%;
    padding: 12px 42px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: .9rem;
    color: #333;
    outline: none;
    transition: .25s ease;
    background: #fafafa;
    box-sizing: border-box;
}

.input-wrap input:focus {
    border-color: #ff5f6d;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255, 95, 109, .12);
}

.input-wrap input.is-error { border-color: #e74c3c; }
.input-wrap input.is-ok    { border-color: #2ecc71; }

/* Toggle eye */
.toggle-pw {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #bbb;
    cursor: pointer;
    font-size: .9rem;
    transition: color .2s;
}
.toggle-pw:hover { color: #ff5f6d; }

/* Field errors */
.field-error {
    font-size: .76rem;
    color: #e74c3c;
    margin-top: 4px;
    display: none;
}
.field-error.show { display: block; }

/* ---- Password strength ---- */
.strength-bar {
    height: 4px;
    border-radius: 2px;
    background: #eee;
    margin-top: 6px;
    overflow: hidden;
}
.strength-fill {
    height: 100%;
    border-radius: 2px;
    width: 0;
    transition: width .4s ease, background .4s ease;
}
.strength-text {
    font-size: .72rem;
    color: #999;
    margin-top: 3px;
}

/* ---- Login extras ---- */
.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: .83rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #666;
    cursor: pointer;
}
.remember-me input[type="checkbox"] {
    accent-color: #ff5f6d;
    width: 15px;
    height: 15px;
}

.forgot-link {
    color: #ff5f6d;
    font-weight: 600;
    text-decoration: none;
}
.forgot-link:hover { text-decoration: underline; }

/* ---- Terms ---- */
.terms-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    font-size: .83rem;
    color: #666;
}
.terms-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 3px;
    accent-color: #ff5f6d;
    flex-shrink: 0;
    cursor: pointer;
}
.terms-group a { color: #ff5f6d; font-weight: 600; }

/* ---- Primary button ---- */
.btn-auth {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, #ff5f6d, #ffc371);
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: .95rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: .3s ease;
    box-shadow: 0 4px 18px rgba(255, 95, 109, .35);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 26px rgba(255, 95, 109, .5);
}
.btn-auth:disabled { opacity: .65; cursor: not-allowed; transform: none; }

/* ---- Switch link ---- */
.switch-link {
    text-align: center;
    font-size: .85rem;
    color: #888;
}
.switch-link a { color: #ff5f6d; font-weight: 600; }

/* ---- Success message ---- */
.success-msg {
    display: none;
    text-align: center;
    padding: 32px 16px;
}
.success-icon { font-size: 3.5rem; margin-bottom: 14px; }
.success-msg h3 { font-size: 1.4rem; color: #1a1a2e; margin-bottom: 8px; }
.success-msg p  { color: #888; font-size: .9rem; }

/* ============================================================
   RIGHT PANEL
   ============================================================ */
.auth-right {
    background:
        linear-gradient(135deg, rgba(26,26,46,.78) 0%, rgba(15,52,96,.85) 100%),
        url('https://images.unsplash.com/photo-1488085061387-422e29b40080?w=1200&q=80') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 48px;
    color: #fff;
}

.auth-right-inner {
    max-width: 380px;
    text-align: center;
}

.auth-right-inner h2 {
    font-size: 2.3rem;
    font-weight: 700;
    margin-bottom: 14px;
    line-height: 1.3;
}

.auth-right-inner > p {
    font-size: .97rem;
    opacity: .82;
    line-height: 1.7;
    margin-bottom: 32px;
}

/* Perks */
.perks {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 36px;
}

.perk {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
    backdrop-filter: blur(8px);
    padding: 13px 18px;
    border-radius: 12px;
    text-align: left;
}
.perk i    { font-size: 1.15rem; color: #ffc371; flex-shrink: 0; }
.perk span { font-size: .86rem; }

/* Stats row */
.auth-stats {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.stat {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 12px;
    padding: 14px 20px;
    text-align: center;
    min-width: 90px;
}
.stat-num {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffc371;
}
.stat-lbl {
    display: block;
    font-size: .72rem;
    opacity: .8;
    margin-top: 2px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .auth-page { grid-template-columns: 1fr; }
    .auth-right { display: none; }
    .auth-left  { padding: 44px 32px; }
}

@media (max-width: 480px) {
    .auth-left  { padding: 32px 18px; }
    .auth-title { font-size: 1.6rem; }
    .tab-btn    { font-size: .8rem; padding: 10px 10px; }
}