
/* ==================================================
   DAVID ASOVSKI'S SIGNATURE MEATS
   DELI INVENTORY MANAGEMENT
   Main stylesheet
   ================================================== */

:root {
    --navy: #101e31;
    --navy-dark: #091321;
    --burgundy: #872f38;
    --burgundy-dark: #69232b;
    --cream: #faf6ef;
    --white: #ffffff;
    --gold: #c6ad82;
    --text: #182638;
    --muted: #68717c;
    --border: #d8d3ca;
}

/* RESET */

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--navy);
    color: var(--text);
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
}

button:focus-visible,
input:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

/* MAIN LAYOUT */

.login-layout {
    display: grid;
    grid-template-columns: 56% 44%;
    min-height: 100vh;
    min-height: 100dvh;
}

/* BRAND PANEL */

.brand-panel {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
    min-height: 100vh;
    overflow: hidden;
    background: var(--navy-dark);
}

.department-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.brand-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(9, 19, 33, 0.82) 0%,
        rgba(9, 19, 33, 0.48) 48%,
        rgba(9, 19, 33, 0.25) 100%
    );
}

.brand-content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 40px 24px;
    text-align: center;
    color: var(--white);
}

/* ORIGINAL LOGO */

.brand-logo {
    display: block;
    width: 180px;
    max-width: 45%;
    height: auto;
    object-fit: contain;
    margin: 0 auto 28px;
}

/* BRAND SIGNATURE */

.brand-signature {
    font-family: "Snell Roundhand",
                 "Apple Chancery",
                 "Segoe Script",
                 "Brush Script MT",
                 cursive;
    font-size: clamp(38px, 5vw, 76px);
    font-weight: 400;
    line-height: 1.25;
    color: var(--white);
    margin-bottom: 12px;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.5);
}

/* COMPANY NAME */

.brand-name {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(25px, 3.5vw, 52px);
    font-weight: 500;
    letter-spacing: 3px;
    line-height: 1.2;
    margin: 0 0 24px;
    color: var(--white);
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.5);
}

/* DELI INVENTORY TITLE */

.brand-subtitle {
    display: inline-block;
    max-width: 100%;
    padding: 14px 22px;
    background: var(--burgundy);
    color: var(--white);
    border-top: 1px solid var(--gold);
    border-bottom: 1px solid var(--gold);
    font-size: clamp(11px, 1.3vw, 16px);
    font-weight: 600;
    letter-spacing: 2px;
    line-height: 1.5;
}

/* LOGIN PANEL */

.login-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 0;
    padding: 90px 40px 40px;
    background: var(--navy);
}

/* LANGUAGE SELECTOR */

.language-selector {
    position: absolute;
    top: 30px;
    right: 35px;
    display: flex;
    padding: 4px;
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
}

.language-button {
    min-width: 46px;
    padding: 9px 12px;
    border: none;
    border-radius: 5px;
    background: transparent;
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    transition: background 0.2s ease;
}

.language-button.active {
    background: var(--cream);
    color: var(--navy);
}

.language-button:not(.active):hover {
    background: rgba(255, 255, 255, 0.12);
}

/* LOGIN CARD */

.login-card {
    width: 100%;
    max-width: 440px;
    padding: 42px 36px;
    background: var(--cream);
    border: 1px solid rgba(198, 173, 130, 0.55);
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.login-heading {
    margin-bottom: 32px;
}

.login-heading h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 34px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--navy);
    margin: 0 0 12px;
}

.login-heading p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--muted);
    margin: 0;
}

/* FORM */

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 9px;
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
}

.form-group input {
    width: 100%;
    min-height: 50px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: var(--white);
    color: var(--text);
    font-size: 16px;
    transition: border-color 0.2s ease;
}

.form-group input::placeholder {
    color: #858b92;
    font-size: 13px;
}

.form-group input:focus {
    border-color: var(--burgundy);
}

.form-group input:disabled {
    opacity: 0.8;
}

/* PASSWORD FIELD */

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 90px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    padding: 8px;
    border: none;
    background: transparent;
    color: var(--burgundy);
    font-size: 12px;
    font-weight: 600;
}

.password-toggle:disabled {
    opacity: 0.6;
}

/* SIGN IN BUTTON */

.login-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    min-height: 52px;
    padding: 15px 18px;
    margin-top: 8px;
    border: none;
    border-radius: 7px;
    background: var(--burgundy);
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: background 0.2s ease;
}

.login-button:not(:disabled):hover {
    background: var(--burgundy-dark);
}

.login-button:disabled {
    opacity: 0.75;
}

/* STATUS MESSAGES */

.login-message {
    margin-top: 14px;
    font-size: 13px;
    line-height: 1.5;
}

.login-message:empty {
    display: none;
}

.login-message.error {
    color: #a52632;
}

.login-message.success {
    color: #246d43;
}

.preview-notice {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}

/* AUTHORIZED PERSONNEL */

.authorized-notice {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.4px;
    line-height: 1.5;
    text-align: center;
}

/* FOOTER */

.login-footer {
    margin-top: 28px;
    text-align: center;
    color: #b9c0cb;
    font-size: 11px;
    line-height: 1.7;
}

.login-footer p {
    margin: 3px 0;
}

/* TABLETS */

@media (max-width: 1024px) {

    .login-layout {
        grid-template-columns: 50% 50%;
    }

    .login-panel {
        padding: 85px 24px 35px;
    }

    .login-card {
        padding: 32px 26px;
    }

    .brand-logo {
        width: 150px;
    }

    .brand-name {
        letter-spacing: 2px;
    }
}

/* MOBILE DEVICES */

@media (max-width: 767px) {

    .login-layout {
        grid-template-columns: 1fr;
    }

    .brand-panel {
        min-height: 390px;
    }

    .brand-content {
        padding: 30px 18px;
    }

    .brand-logo {
        width: 115px;
        margin-bottom: 18px;
    }

    .brand-signature {
        font-size: clamp(34px, 9vw, 52px);
    }

    .brand-name {
        font-size: clamp(24px, 6vw, 34px);
        letter-spacing: 2px;
        margin-bottom: 18px;
    }

    .brand-subtitle {
        padding: 11px 15px;
        font-size: 11px;
        letter-spacing: 1.3px;
    }

    .login-panel {
        padding: 76px 20px 30px;
    }

    .language-selector {
        top: 20px;
        right: 20px;
    }

    .login-card {
        max-width: 440px;
        padding: 30px 24px;
    }

    .login-heading h2 {
        font-size: 29px;
    }
}

/* SMALL MOBILE DEVICES */

@media (max-width: 360px) {

    .login-panel {
        padding-left: 12px;
        padding-right: 12px;
    }

    .login-card {
        padding: 26px 18px;
    }

    .brand-panel {
        min-height: 350px;
    }
}

/* REDUCED MOTION ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }
}
