/* =====================================================================
   Auth pages — Login, Register, Join, Onboarding
   Full-bleed split-screen layout on desktop; single column on mobile.
   ===================================================================== */

.auth-body { margin: 0; padding: 0; min-height: 100vh; background: var(--color-bg); }

/* =====================================================================
   SPLIT-SCREEN HERO (Login)
   ===================================================================== */

.auth-split {
    display: flex;
    min-height: 100vh;
}

/* Left panel */
.auth-left {
    flex: 0 0 60%;
    background: #2E7D32;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px;
    overflow: hidden;
}

/* Subtle diagonal stripe texture */
.auth-left::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 28px,
        rgba(255,255,255,.04) 28px,
        rgba(255,255,255,.04) 56px
    );
}

.auth-left-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
    max-width: 420px;
}

.auth-wordmark {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 8px;
}

.auth-tagline {
    font-size: 18px;
    font-weight: 300;
    opacity: .85;
    margin-bottom: 32px;
}

.auth-props {
    list-style: none;
    padding: 0;
    text-align: left;
    margin-bottom: 48px;
}

.auth-props li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 15px;
    opacity: .9;
}

.auth-props .prop-check {
    width: 22px; height: 22px;
    background: rgba(255,255,255,.2);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

/* Simple SVG illustration — two people silhouettes */
.auth-illustration {
    display: flex;
    gap: 16px;
    justify-content: center;
    opacity: .6;
}

.auth-illustration svg { width: 64px; height: 64px; fill: #fff; }

/* Right panel */
.auth-right {
    flex: 0 0 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-surface);
    position: relative;
    padding: 48px 40px;
}

html.dark .auth-right { background: #1E1E1E; }

.auth-right-inner {
    width: 100%;
    max-width: 360px;
}

.auth-mobile-header {
    display: none;
    background: #2E7D32;
    color: #fff;
    padding: 16px 20px;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
}

.auth-mobile-tagline {
    font-size: 13px;
    font-weight: 300;
    opacity: .8;
    display: block;
    margin-top: 2px;
}

.auth-heading {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--color-text);
}

.auth-theme-toggle {
    position: absolute;
    top: 16px;
    right: 16px;
}

/* Password field with show/hide */
.input-password-wrap {
    position: relative;
}

.input-password-wrap input {
    padding-right: 40px;
}

.input-password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-muted);
    font-size: 16px;
    padding: 0;
}

/* Forgot password link */
.auth-link {
    display: block;
    text-align: center;
    margin-top: 12px;
    font-size: 13px;
    color: var(--color-text-muted);
}

.auth-link:hover { color: var(--color-primary); }

/* =====================================================================
   ONBOARDING WRAPPER (Register, Accounts, Invite, Join)
   ===================================================================== */

.onboarding-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}

.onboarding-card {
    background: var(--color-surface);
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,.12);
    padding: 40px;
    width: 100%;
    max-width: 520px;
}

html.dark .onboarding-card { background: #1E1E1E; }

.onboarding-logo {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 24px;
}

.onboarding-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}

.onboarding-sub {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 24px;
}

/* Account row (repeatable) */
.account-row {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 12px;
    position: relative;
}

.account-row .remove-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-danger);
    font-size: 16px;
}

/* Invite link display */
.invite-link-wrap {
    display: flex;
    gap: 8px;
    margin: 16px 0;
}

.invite-link-wrap input {
    flex: 1;
    font-family: monospace;
    font-size: 13px;
}

/* =====================================================================
   MOBILE RESPONSIVE
   ===================================================================== */

@media (max-width: 768px) {
    .auth-split { flex-direction: column; }
    .auth-left  { display: none; }
    .auth-right {
        flex: 1;
        padding: 0;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
    }
    .auth-right-inner { max-width: 100%; }
    .auth-mobile-header { display: block; }
    .auth-right-inner { padding: 24px 20px; }
    .onboarding-card { padding: 24px 20px; border-radius: 0; box-shadow: none; }
}
