/* =============================================
   PLUSPUNKT DRUCKSHOP – Global Stylesheet
   Design: #1A2E4A Navy · #2563EB Blue · Inter
   ============================================= */

/* === RESET === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* === DESIGN TOKENS === */
:root {
    /* Brand Palette (from design system) */
    --primary:        #1e293b;
    --primary-hover:  #0f172a;
    --secondary:      #53b352;
    --secondary-hover:#3f9f3f;
    --neutral:        #F8FAFC;

    /* Dynamic – overridden by JS club theme */
    --club-header-bg: #1e293b;
    --club-btn-bg:    #53b352;
    --club-btn-hover: #3f9f3f;

    /* Surfaces */
    --bg:             #f8f9fa;
    --surface:        #ffffff;
    --surface-subtle: #f3f4f5;

    /* Borders */
    --border:         #E2E8F0;
    --border-strong:  #CBD5E1;

    /* Text */
    --text:           #0F172A;
    --text-secondary: #475569;
    --text-muted:     #94A3B8;
    --text-light:     #CBD5E1;

    /* Feedback */
    --success:    #16a34a;
    --success-bg: #f0fdf4;
    --warning:    #d97706;
    --warning-bg: #fffbeb;
    --error:      #dc2626;
    --error-bg:   #fef2f2;

    /* Geometry */
    --radius-xs:   4px;
    --radius-sm:   8px;
    --radius:      12px;
    --radius-lg:   16px;
    --radius-full: 999px;

    /* Shadows */
    --shadow-sm:  0 1px 3px rgba(15,23,42,0.06), 0 1px 2px rgba(15,23,42,0.04);
    --shadow:     0 4px 16px rgba(15,23,42,0.08), 0 2px 4px rgba(15,23,42,0.04);
    --shadow-lg:  0 12px 36px rgba(15,23,42,0.12), 0 4px 12px rgba(15,23,42,0.06);
    --shadow-card:0 2px 8px rgba(15,23,42,0.06),  0 0 0 1px rgba(15,23,42,0.04);
}

/* === BASE === */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

/* === SHARED HEADER (customer / thanks) === */
header {
    background: var(--club-header-bg, #1A2E4A);
    color: white;
    padding: 0.875rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 0 rgba(255,255,255,0.06), 0 2px 12px rgba(15,23,42,0.22);
    position: sticky;
    top: 0;
    z-index: 200;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.logo-image {
    height: 38px;
    width: auto;
    object-fit: contain;
    filter: none;
}

.logo-image.logo-image-custom {
    filter: none;
}

header nav {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

/* === SECURITY BADGE === */
.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.28rem 0.65rem;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.85);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.security-badge::before {
    content: '';
    width: 0.45rem;
    height: 0.45rem;
    border-radius: var(--radius-full);
    background: #34d399;
    box-shadow: 0 0 0 3px rgba(52,211,153,0.22);
    flex-shrink: 0;
}

/* === LOGOUT BUTTON === */
.logout-btn {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    padding: 0.4rem 0.875rem;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: var(--radius-sm);
    font-size: 0.825rem;
    font-weight: 500;
    transition: background 0.18s, border-color 0.18s;
}

.logout-btn:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.45);
}

/* =============================================
   LOGIN PAGE
   ============================================= */
.login-page-bg {
    min-height: 100vh;
    background: radial-gradient(circle at 16% 18%, #dff4dd 0%, #f8f9fa 42%, #e8eef4 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.login-card {
    background: var(--surface);
    width: 100%;
    max-width: 420px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 2.75rem 2.5rem 2.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-brand-icon {
    width: 96px;
    height: 96px;
    background: #fff;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.1rem;
    box-shadow: 0 2px 12px rgba(26,46,74,0.13);
    border: 1px solid #e8edf3;
    padding: 10px;
}

.login-brand-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.login-card h1 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.2rem;
    letter-spacing: -0.02em;
    text-align: center;
}

.login-card .login-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    text-align: center;
}

.login-form {
    width: 100%;
}

.login-field {
    margin-bottom: 1rem;
}

.login-field-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

.login-field-wrap {
    position: relative;
}

.login-field-icon {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    pointer-events: none;
    flex-shrink: 0;
}

.login-field input {
    width: 100%;
    padding: 0.72rem 0.875rem 0.72rem 2.6rem;
    border: 1.5px solid var(--border-strong);
    border-radius: var(--radius-sm);
    font-size: 0.925rem;
    font-family: inherit;
    color: var(--text);
    background: var(--surface-subtle);
    transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}

.login-field input:focus {
    outline: none;
    background: var(--surface);
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

.login-field input::placeholder {
    color: var(--text-muted);
}

.login-btn {
    width: 100%;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #2f4f95, #3f62af);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    box-shadow: 0 6px 14px rgba(47,79,149,0.34);
    transition: background 0.18s, box-shadow 0.18s, transform 0.1s;
}

.login-btn:hover {
    background: linear-gradient(135deg, #274380, #36589f);
    box-shadow: 0 8px 18px rgba(39,67,128,0.4);
}

.login-btn:active {
    transform: scale(0.98);
}

.login-error {
    background: var(--error-bg);
    border: 1px solid #fca5a5;
    color: var(--error);
    border-radius: var(--radius-sm);
    padding: 0.65rem 0.9rem;
    margin-top: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.4;
    display: none;
    width: 100%;
}

/* Legacy .login-container compatibility */
.login-container {
    max-width: 420px;
    margin: 5rem auto 2rem;
    background: var(--surface);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.login-container h2 {
    color: var(--primary);
    margin-bottom: 0.4rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.login-subtitle {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1.75rem;
}

.login-container .input-group {
    text-align: left;
    margin-bottom: 0.9rem;
}

.login-container .input-group label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.login-container .input-group input {
    width: 100%;
    padding: 0.7rem 0.95rem;
    border: 1.5px solid var(--border-strong);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text);
    background: var(--surface-subtle);
    transition: border-color 0.18s, box-shadow 0.18s;
}

.login-container .input-group input:focus {
    outline: none;
    background: var(--surface);
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

.login-info {
    margin-top: 1.5rem;
    color: var(--text-muted);
    font-size: 0.82rem;
}

/* === FORMS (shared) === */
.form-group { margin-bottom: 1.25rem; }

label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

input:not([type="radio"]):not([type="checkbox"]):not([type="range"]):not([type="color"]):not([type="file"]),
select {
    width: 100%;
    padding: 0.65rem 0.875rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.925rem;
    font-family: inherit;
    color: var(--text);
    background: var(--surface);
    transition: border-color 0.18s, box-shadow 0.18s;
}

input:not([type="radio"]):not([type="checkbox"]):not([type="range"]):not([type="color"]):not([type="file"]):focus,
select:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

input[type="radio"], input[type="checkbox"] {
    width: auto; padding: 0; border: none; border-radius: 0;
}

/* Keep login icons visible even with shared form input defaults below/above. */
.login-field-wrap .login-field-icon {
    z-index: 2;
}

.login-field-wrap input {
    padding-left: 3.1rem !important;
    text-indent: 0;
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6rem 1.25rem;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: inherit;
    letter-spacing: 0.01em;
    transition: background 0.18s, box-shadow 0.18s, transform 0.1s;
    white-space: nowrap;
    text-decoration: none;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
    background: var(--club-btn-bg, #2563EB);
    color: white;
    width: 100%;
    box-shadow: 0 2px 8px rgba(37,99,235,0.25);
}

.btn-primary:hover {
    background: var(--club-btn-hover, #1d4ed8);
    box-shadow: 0 4px 14px rgba(37,99,235,0.35);
}

.btn-secondary {
    background: var(--surface-subtle);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--border);
    color: var(--text);
}

.btn-success {
    background: var(--success);
    color: white;
    box-shadow: 0 2px 8px rgba(22,163,74,0.2);
}

.btn-success:hover { background: #15803d; }

.btn-danger, .btn-delete {
    background: var(--error);
    color: white;
    box-shadow: 0 2px 8px rgba(220,38,38,0.2);
}

.btn-danger:hover, .btn-delete:hover { background: #b91c1c; }

.btn-info {
    background: #3b82f6;
    color: white;
    box-shadow: 0 2px 8px rgba(59,130,246,0.2);
}

.btn-info:hover { background: #2563eb; }
