/*
 * Base styles shared by all templates.
 * Keep this file for global typography, colors, and common utilities.
 * Template-specific overrides live in template-weekend.css and template-saint-valentin.css.
 */

/* Global font setup for the whole app. */
body {
    font-family: 'Montserrat', sans-serif;
}

/*
 * Preview page base (A4 portrait). If you change size/orientation later,
 * update these values or override them in template-specific CSS.
 */
.preview-page {
    font-family: 'Montserrat', sans-serif;
    width: 210mm;
    height: 297mm;
    padding: 15mm;
    background-color: #fff;
    margin: 0 auto 40px auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.preview-page--landscape {
    width: 297mm;
    height: 210mm;
}

/* Inner border wrapper used on every page. */
.preview-inner {
    border: 2pt solid var(--pink-color);
    padding: 6mm;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Optional variant used when the inner wrapper needs a white background. */
.preview-inner--white {
    background-color: #fff;
    overflow: hidden;
}

/* Allergens table title color. */
.preview-allergen-title {
    color: var(--pink-color);
}

/* Table border color for allergen tables. */
.preview-table-border {
    border-color: rgba(var(--pink-color-rgb), 0.2);
}

/*
 * Add other shared rules below.
 * Example sections you can use:
 * - Layout helpers
 * - Button resets
 * - Shared preview blocks
 */

/* Fullscreen lock screen shown before auth succeeds. */
.auth-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(140deg, #f8fafc 0%, #f1f5f9 45%, #fee2e2 100%);
}

/* Login card container. */
.auth-card {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    padding: 28px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
}

/* Login title. */
.auth-title {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
}

/* Helper text under title. */
.auth-subtitle {
    margin: 0 0 6px 0;
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
}

/* Form label style. */
.auth-label {
    font-size: 11px;
    font-weight: 800;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-top: 8px;
}

/* Input field style for auth form. */
.auth-input {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 11px 13px;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    background: #f8fafc;
    outline: none;
}

/* Focus state for auth inputs. */
.auth-input:focus {
    border-color: #d461a6;
    box-shadow: 0 0 0 3px rgba(212, 97, 166, 0.2);
    background: #ffffff;
}

/* Error message in auth form. */
.auth-error {
    margin: 4px 0 0 0;
    font-size: 13px;
    font-weight: 700;
    color: #b91c1c;
}

/* Main auth submit button. */
.auth-submit {
    margin-top: 12px;
    border: none;
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ffffff;
    background: #0f172a;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

/* Hover state for submit button. */
.auth-submit:hover {
    background: #1e293b;
}