html, body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #F5F7FA;
    color: #1F2937;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: linear-gradient(135deg, #1E3A5F 0%, #2B4C7E 100%);
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: #FFFFFF;
    border-radius: 12px;
    padding: 28px 24px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.auth-brand h1 {
    margin: 0;
    font-size: 1.5rem;
    color: #1E3A5F;
}

.auth-subtitle {
    margin: 0 0 20px 0;
    color: #4B5563;
    font-size: 0.95rem;
}

.auth-field {
    margin-bottom: 16px;
}

.auth-field label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: #374151;
}

.auth-input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-size: 1rem;
}

.auth-input:focus {
    outline: none;
    border-color: #1E3A5F;
    box-shadow: 0 0 0 2px rgba(30, 58, 95, 0.15);
}

.auth-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #374151;
}

.auth-btn {
    width: 100%;
    padding: 12px 16px;
    background-color: #1E3A5F;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    box-sizing: border-box;
}

.auth-btn:hover {
    background-color: #162B47;
}

.auth-alert {
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.auth-alert-error {
    background-color: #FEF2F2;
    border: 1px solid #FECACA;
    color: #991B1B;
}

.auth-alert-warning {
    background-color: #FFFBEB;
    border: 1px solid #FDE68A;
    color: #92400E;
}

.validation-message {
    color: #DC2626;
    font-size: 0.85rem;
    margin-top: 4px;
}

#blazor-error-ui {
    background: #FEF2F2;
    color: #991B1B;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.print-only {
    display: none;
}

@media print {
    html, body {
        background-color: #FFFFFF !important;
        color: #111827 !important;
        font-size: 9pt !important;
    }

    .mud-appbar,
    .mud-drawer,
    .no-print,
    #blazor-error-ui {
        display: none !important;
    }

    .print-only {
        display: block !important;
    }

    .mud-main-content {
        padding: 0 !important;
        margin: 0 !important;
    }

    .mud-container {
        max-width: 100% !important;
        padding: 0 !important;
    }

    .mud-paper,
    .mud-elevation-1 {
        box-shadow: none !important;
    }

    .print-supplier-card {
        break-inside: avoid;
        border: 1px solid #D1D5DB !important;
        padding: 8px 10px !important;
        margin-bottom: 10px !important;
        background-color: #FFFFFF !important;
        color: #111827 !important;
    }

    .mud-table-cell,
    .mud-table-head .mud-table-cell {
        padding: 2px 6px !important;
        font-size: 8.5pt !important;
        line-height: 1.25 !important;
    }

    h4, .mud-typography-h4 {
        font-size: 14pt !important;
        margin-bottom: 4px !important;
    }

    h6, .mud-typography-h6 {
        font-size: 11pt !important;
    }
}
