:root {
    --volleyvision-orange: #e4701e;
    --volleyvision-light-orange: #e98d4b;  /* lighten($volleyvision-orange, 10%); */
}

.separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.75rem 0;
    font-size: 0.8rem;
    color: #6B7A8D;
}
.separator::before,
.separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}
.separator:not(:empty)::before { margin-right: .25em; }
.separator:not(:empty)::after  { margin-left:  .25em; }

.gsi-material-button {
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -webkit-appearance: none;
    background-color: WHITE;
    background-image: none;
    border: 1px solid #747775;
    -webkit-border-radius: 4px;
    border-radius: 4px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    color: #1f1f1f;
    cursor: pointer;
    font-family: 'Roboto', arial, sans-serif;
    font-size: 14px;
    height: 40px;
    letter-spacing: 0.25px;
    outline: none;
    overflow: hidden;
    padding: 0 12px;
    position: relative;
    text-align: center;
    -webkit-transition: background-color .218s, border-color .218s, box-shadow .218s;
    transition: background-color .218s, border-color .218s, box-shadow .218s;
    vertical-align: middle;
    white-space: nowrap;
    width: auto;
    max-width: 400px;
    min-width: min-content;
}

.gsi-material-button .gsi-material-button-icon {
    height: 20px;
    margin-right: 12px;
    min-width: 20px;
    width: 20px;
}

.gsi-material-button .gsi-material-button-content-wrapper {
    -webkit-align-items: center;
    align-items: center;
    display: flex;
    -webkit-flex-direction: row;
    flex-direction: row;
    -webkit-flex-wrap: nowrap;
    flex-wrap: nowrap;
    height: 100%;
    justify-content: space-between;
    position: relative;
    width: 100%;
}

.gsi-material-button .gsi-material-button-contents {
    -webkit-flex-grow: 1;
    flex-grow: 1;
    font-family: 'Roboto', arial, sans-serif;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: top;
}

.gsi-material-button .gsi-material-button-state {
    -webkit-transition: opacity .218s;
    transition: opacity .218s;
    bottom: 0;
    left: 0;
    opacity: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.gsi-material-button:not(:disabled):active .gsi-material-button-state,
.gsi-material-button:not(:disabled):focus .gsi-material-button-state {
    background-color: #303030;
    opacity: 12%;
}

.gsi-material-button:not(:disabled):hover {
    -webkit-box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15);
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15);
}

.gsi-material-button:not(:disabled):hover .gsi-material-button-state {
    background-color: #303030;
    opacity: 8%;
}

/* ── Global nav ──────────────────────────────────────────── */
.vv-nav {
    background: #FFFFFF;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.vv-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.4rem 2rem;
}

.vv-nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.vv-nav-user {
    font-size: 1rem;
    color: #1A1A2E;
    font-weight: 500;
}

.vv-btn-nav {
    width: auto;
    padding: 0.5rem 1.1rem;
    font-size: 0.85rem;
}

.vv-nav-link {
    font-size: 1rem;
    color: #1A1A2E;
    font-weight: 500;
    text-decoration: none;
}
.vv-nav-link:hover { color: #FF6B35; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scrollbar-gutter: stable;
}

body {
    min-height: 100vh;
    background-color: #F5F6FA;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: stretch;
}

.vv-page {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── Login page ────────────────────────────────────────────────────────────── */
.vv-layout {
    display: flex;
    width: 100%;
    flex: 1;
    min-height: 0;
}

/* ── Left panel ─────────────────────────────────────────── */
.vv-pitch {
    flex: 1 1 55%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: flex-start;
    padding: 4rem 5rem;
    background-color: #F5F6FA;
    position: relative;
    overflow: hidden;
    color: #F0F0F0;
}

/* subtle court-line accent behind the text */
.vv-pitch::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
            linear-gradient(90deg, transparent 49.8%, rgba(255,107,53,0.08) 49.8%, rgba(255,107,53,0.06) 50.2%, transparent 50.2%),
            linear-gradient(transparent 29.8%, rgba(0,0,0,0.04) 29.8%, rgba(255,255,255,0.03) 30.2%, transparent 30.2%);
    pointer-events: none;
}

.vv-wordmark {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #FF6B35;
    text-decoration: none;
}

.vv-headline {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.01em;
    color: #1A1A2E;
    margin-bottom: 1.5rem;
}

.vv-headline .accent { color: #FF6B35; }

.vv-sub {
    font-size: 1.05rem;
    color: #4A5568;
    line-height: 1.6;
    max-width: 38ch;
    margin-bottom: 3rem;
}

.vv-props {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.vv-prop {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.vv-prop-icon {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 6px;
    background: rgba(255, 107, 53, 0.15);
    display: grid;
    place-items: center;
}

.vv-prop-icon svg {
    display: block;
}

.vv-prop-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.vv-prop-text strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1A1A2E;
    margin-bottom: 0.2rem;
}

.vv-prop-text span {
    font-size: 0.85rem;
    color: #6B7A8D;
    line-height: 1.5;
}

/* ── Right panel ─────────────────────────────────────────── */
.vv-form-panel {
    flex: 0 0 420px;
    background-color: #FFFFFF;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 3rem 2.5rem;
    border-left: 1px solid rgba(0,0,0,0.08);
}

.vv-form-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1A1A2E;
    margin-bottom: 0.375rem;
}

.vv-form-sub {
    font-size: 0.85rem;
    color: #4A5568;
    margin-bottom: 2rem;
}

.vv-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6B7A8D;
    margin-bottom: 0.4rem;
}

.vv-input {
    width: 100%;
    background: #F5F6FA;
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 8px;
    color: #1A1A2E;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    padding: 0.65rem 0.875rem;
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
}

.vv-input:focus {
    border-color: #FF6B35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
}

.vv-input::placeholder { color: #9AA5B4; }

.vv-field { margin-bottom: 1.25rem; }

.vv-btn-primary {
    background: #FF6B35;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.75rem;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    margin-top: 0.5rem;
}

/* Only the login form button goes full width */
.vv-form-panel .vv-btn-primary {
    width: 100%;
}

.vv-btn-primary:hover { background: #e85c28; }
.vv-btn-primary:active { transform: scale(0.99); }

.vv-alert {
    border-radius: 8px;
    font-size: 0.85rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.vv-alert-danger {
    background: rgba(220, 53, 69, 0.12);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #f08080;
}

.vv-alert-info {
    background: rgba(255, 107, 53, 0.08);
    border: 1px solid rgba(255, 107, 53, 0.2);
    color: #c8a98a;
}

.vv-alert-warning {
    background: rgba(255, 193, 7, 0.12);
    border: 1px solid rgba(255, 193, 7, 0.3);
    color: #b8860b;
}

.vv-divider {
    border: none;
    border-top: 1px solid rgba(0,0,0,0.08);
    margin: 1.75rem 0;
}

.vv-footer-links {
    font-size: 0.8rem;
    color: #6B7A8D;
    line-height: 1.8;
}

.vv-footer-links a {
    color: #4A5568;
    text-decoration: none;
}

.vv-footer-links a:hover { color: #FF6B35; text-decoration: underline; }

/* ── Period report trends ────────────────────────────────── */
.vv-trend {
    font-weight: 700;
    font-size: 0.9rem;
}
.vv-trend-up   { color: #16a34a; }
.vv-trend-down { color: #dc2626; }
.vv-trend-flat { color: #64748b; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
    .vv-layout { flex-direction: column; }
    .vv-pitch {
        padding: 2.5rem 1.75rem 2rem;
        flex: none;
    }
    .vv-form-panel {
        flex: none;
        border-left: none;
        border-top: 1px solid rgba(0,0,0,0.08);
        padding: 2rem 1.75rem;
    }
    .vv-headline { font-size: 2.4rem; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}