/**
 * File: public/assets/css/auth.css
 * Purpose: Split-screen authentication pages (Login, Forgot Password, Reset Password).
 * Dependencies: public/assets/css/design-system.css
 */

.pb-auth-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.08fr 1fr;
    background: var(--bg);
}

/* Left Branded Travel Panel */
.pb-auth-hero {
    position: relative;
    background: linear-gradient(145deg, #061A2D 0%, #092640 50%, #0D5966 100%);
    color: #FFFFFF;
    padding: 48px 52px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.pb-auth-hero::before {
    content: "";
    position: absolute;
    width: 480px;
    height: 480px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(20, 184, 180, 0.22) 0%, rgba(20, 184, 180, 0) 70%);
    top: -120px;
    right: -120px;
    pointer-events: none;
}

.pb-auth-hero::after {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(16, 167, 165, 0.16) 0%, rgba(16, 167, 165, 0) 70%);
    bottom: -100px;
    left: -80px;
    pointer-events: none;
}

.pb-auth-hero-brand {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 14px;
}

.pb-auth-hero-logo {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--teal-600), var(--teal-500));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 19px;
    color: #fff;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(16, 167, 165, 0.38);
}
.pb-auth-hero-logo img { width: 100%; height: 100%; object-fit: cover; }

.pb-auth-hero-title { font-size: 18px; font-weight: 700; line-height: 1.25; }
.pb-auth-hero-sub { font-size: 12.5px; color: rgba(255, 255, 255, 0.68); }

.pb-auth-hero-center {
    position: relative;
    z-index: 2;
    max-width: 480px;
    margin: 32px 0;
}

.pb-auth-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(20, 184, 180, 0.16);
    border: 1px solid rgba(20, 184, 180, 0.35);
    color: #7EF2EE;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 18px;
}

.pb-auth-hero-center h1 {
    margin: 0 0 14px;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: -0.02em;
}

.pb-auth-hero-center p {
    margin: 0 0 26px;
    font-size: 14.5px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.78);
}

.pb-auth-art {
    width: 100%;
    max-width: 420px;
    margin-bottom: 24px;
}

.pb-auth-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.pb-auth-feature {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}
.pb-auth-feature svg { width: 17px; height: 17px; color: var(--teal-500); flex-shrink: 0; }

.pb-auth-hero-foot {
    position: relative;
    z-index: 2;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* Right Form Panel */
.pb-auth-form-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 36px 24px;
    background: var(--bg);
}

.pb-auth-card {
    width: 100%;
    max-width: 430px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px 34px;
    box-shadow: var(--shadow-md);
}

.pb-auth-card-head { margin-bottom: 24px; }
.pb-auth-card-head h2 {
    margin: 0 0 6px;
    font-size: 23px;
    font-weight: 700;
    color: var(--navy-700);
}
.pb-auth-card-head p {
    margin: 0;
    font-size: 13.5px;
    color: var(--text-muted);
}

.pb-input-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.pb-input-icon-wrap .pb-input-lead {
    position: absolute;
    left: 13px;
    width: 17px;
    height: 17px;
    color: var(--text-muted);
    pointer-events: none;
}
.pb-input-icon-wrap .pb-input {
    padding-left: 40px;
    height: 43px;
}
.pb-input-icon-wrap .pb-input.has-trail { padding-right: 42px; }
.pb-pw-toggle {
    position: absolute;
    right: 8px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.pb-pw-toggle:hover { color: var(--navy-700); background: var(--bg); }

.pb-auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 14px 0 22px;
    font-size: 13px;
}
.pb-auth-link {
    font-weight: 600;
    color: var(--teal-600);
}
.pb-auth-link:hover { text-decoration: underline; }

.pb-auth-submit {
    width: 100%;
    height: 44px;
    font-size: 14.5px;
}

.pb-auth-card-foot {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
}

@media (max-width: 960px) {
    .pb-auth-page { grid-template-columns: 1fr; }
    .pb-auth-hero { padding: 28px 22px; }
    .pb-auth-art, .pb-auth-features { display: none; }
    .pb-auth-hero-center { margin: 18px 0 8px; }
    .pb-auth-hero-center h1 { font-size: 24px; }
    .pb-auth-card { padding: 28px 22px; }
}