:root {
    /* PUTT Analysis brand palette -- ported verbatim from PuttAnalysis.Desktop/Styles/ColorPalette.axaml
       (green, deliberately distinct from Upload Data's blue so a user with multiple apps open
       can tell them apart at a glance -- placeholder palette per Reza's standing "confirm before
       big branding changes" note, real branding decision still deferred). */
    --pa-primary: #1B6B3A;
    --pa-primary-light: #2E8C52;
    --pa-primary-dark: #0F4D28;

    --pa-text-primary: #2B2E33;
    --pa-text-secondary: #5B6168;

    --pa-background: #F5F7FA;
    --pa-surface: #FFFFFF;
    --pa-border: #D6DBE1;

    --pa-error: #B3392C;
    --pa-warning: #B8860B;
    /* No distinct "success" color exists in the desktop palette -- reuse primary green,
       which already reads as an affirmative/positive color in this app's own UI. */
    --pa-success: #1B6B3A;
}

body {
    background-color: var(--pa-background);
    color: var(--pa-text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.pa-header {
    background-color: var(--pa-primary-dark);
    color: white;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pa-header .brand {
    font-size: 22px;
    font-weight: bold;
}

.pa-page {
    padding: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.pa-card {
    background-color: var(--pa-surface);
    border: 1px solid var(--pa-border);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    font-size: 13px;
    color: var(--pa-text-secondary);
    margin-bottom: 4px;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--pa-border);
    border-radius: 4px;
    box-sizing: border-box;
}

.btn-primary {
    background-color: var(--pa-primary);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 18px;
    cursor: pointer;
    font-weight: 600;
}
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-secondary {
    background-color: white;
    color: var(--pa-primary);
    border: 1px solid var(--pa-primary);
    border-radius: 4px;
    padding: 8px 14px;
    cursor: pointer;
}
.btn-secondary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-danger {
    background-color: var(--pa-error);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 14px;
    cursor: pointer;
}
.btn-danger:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-switchboard {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 4px;
    background-color: var(--pa-primary-light);
    color: white;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
}
.btn-switchboard:hover { background-color: var(--pa-primary); }
.btn-switchboard:disabled { opacity: 0.5; cursor: not-allowed; }

.pa-table {
    width: 100%;
    border-collapse: collapse;
}
.pa-table th, .pa-table td {
    border: 1px solid var(--pa-border);
    padding: 6px 10px;
    text-align: left;
    font-size: 13px;
}
.pa-table th {
    background-color: var(--pa-background);
}

.pa-modal-backdrop {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.pa-modal {
    background: white;
    border-radius: 8px;
    padding: 24px;
    max-width: 480px;
    width: 90%;
}

.tint-error { background-color: #FBEAE8; border: 1px solid var(--pa-error); color: var(--pa-error); border-radius: 8px; padding: 12px 16px; }


/* ===== Shared login screen design, 2026-09-19 =====
   Mirrors ERS Project Tracking's login screen exactly (split panel, logo, "Welcome back"
   copy, password reveal toggle, helper text) so all 4 ERS apps (PT, Upload Data, PUTT
   Analysis, Tax Review) present a single consistent first impression -- per Jacob's explicit
   request to standardize login pages app-family-wide. Only the accent color changes per app,
   driven by each app's own --*-primary/--*-primary-dark variables (already set above); the
   HTML/CSS structure and copy are otherwise byte-for-byte identical across all 3 web apps. */
.app-login-split {
    display: flex;
    min-height: 100vh;
}
.app-login-left {
    flex: 1.1;
    background-color: var(--pa-primary-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
}
.app-login-logo-card {
    background: white;
    border-radius: 10px;
    padding: 24px 20px;
    margin-bottom: 20px;
}
.app-login-logo-card img { width: 220px; display: block; }
.app-login-left h1 {
    color: white;
    font-size: 26px;
    font-weight: bold;
    text-align: center;
    margin: 0 0 12px 0;
}
.app-login-left p {
    color: #D1D5DB;
    font-size: 14px;
    text-align: center;
    max-width: 320px;
    margin: 0;
}
.app-login-version {
    position: absolute;
    bottom: 16px;
    color: #6B7280;
    font-size: 11px;
}
.app-login-right {
    flex: 1;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
}
.app-login-form {
    width: 340px;
}
.app-login-form h2 {
    font-size: 24px;
    font-weight: bold;
    color: #111827;
    margin: 0 0 4px 0;
}
.app-login-form .subtitle {
    font-size: 14px;
    color: #6B7280;
    margin: 0 0 20px 0;
}
.app-login-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin: 14px 0 4px 0;
}
.app-login-form label:first-of-type { margin-top: 0; }
.app-login-form input[type="text"],
.app-login-form input[type="email"],
.app-login-form input[type="password"] {
    width: 100%;
    padding: 12px 10px;
    font-size: 14px;
    border-radius: 6px;
    border: 1px solid #D1D5DB;
    box-sizing: border-box;
}
.app-login-password-row { position: relative; }
.app-login-password-row input { padding-right: 46px !important; }
.app-login-eye-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #6B7280;
    font-size: 12px;
    cursor: pointer;
    padding: 4px 8px;
}
.app-login-eye-toggle:hover { color: var(--pa-primary); }
.app-login-error {
    color: var(--pa-error);
    font-size: 13px;
    white-space: pre-wrap;
    margin-top: 10px;
}
.app-login-submit {
    width: 100%;
    margin-top: 20px;
    background-color: var(--pa-primary);
    color: white;
    font-weight: 600;
    font-size: 15px;
    border: none;
    border-radius: 6px;
    padding: 12px;
    cursor: pointer;
}
.app-login-submit:hover:not(:disabled) { background-color: var(--pa-primary-dark); }
.app-login-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.app-login-busy {
    text-align: center;
    color: #6B7280;
    font-size: 13px;
    margin-top: 10px;
}
.app-login-helper {
    color: #9CA3AF;
    font-size: 11.5px;
    text-align: center;
    margin-top: 20px;
}
