/* Tax Review brand palette -- ported from Desktop's ColorPalette.axaml.
   Orange accent (changed 2026-09-19, Jacob) -- was the same green as PUTT Analysis, which
   looked confusingly identical on the standardized login pages. */
:root {
    --tr-primary: #C1590E;
    --tr-primary-light: #E07A2E;
    --tr-primary-dark: #8A3F09;

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

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

    --tr-error: #B3392C;
    --tr-warning: #C9932B;
}

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

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

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

.tr-header .welcome {
    font-size: 13px;
    color: #C7E7D4;
}

.tr-topnav button, .btn-topnav {
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 600;
    background-color: var(--tr-primary-dark);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-left: 6px;
}

.tr-topnav button:hover, .btn-topnav:hover {
    background-color: var(--tr-primary);
}

.btn-switchboard {
    display: block;
    width: 100%;
    text-align: center;
    padding: 26px 24px;
    font-size: 16px;
    font-weight: bold;
    background-color: var(--tr-primary-dark);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 16px;
    text-decoration: none;
}

.btn-switchboard:hover {
    background-color: var(--tr-primary);
    color: white;
}

.btn-primary {
    background-color: var(--tr-primary);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    cursor: pointer;
    font-weight: 600;
}

.btn-primary:hover { background-color: var(--tr-primary-light); }
.btn-primary:disabled { background-color: #99b8a4; cursor: not-allowed; }

.btn-secondary {
    background-color: var(--tr-surface);
    color: var(--tr-primary);
    border: 1px solid var(--tr-primary);
    border-radius: 6px;
    padding: 8px 16px;
    cursor: pointer;
    font-weight: 600;
}

.btn-secondary:hover { background-color: #eef6f0; }

.btn-danger {
    background-color: var(--tr-error);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    cursor: pointer;
    font-weight: 600;
}

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

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

.form-group { margin-bottom: 12px; }
.form-group label { display: block; font-size: 13px; margin-bottom: 4px; color: var(--tr-text-primary); }
.form-group input, .form-group select, input, select, textarea {
    padding: 6px 8px;
    border: 1px solid var(--tr-border);
    border-radius: 4px;
    font-size: 14px;
}

table { border-collapse: collapse; }
table th, table td { padding: 6px 8px; text-align: left; border-bottom: 1px solid var(--tr-border); }


/* ===== 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(--tr-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(--tr-primary); }
.app-login-error {
    color: var(--tr-error);
    font-size: 13px;
    white-space: pre-wrap;
    margin-top: 10px;
}
.app-login-submit {
    width: 100%;
    margin-top: 20px;
    background-color: var(--tr-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(--tr-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;
}
