:root {
    --gold: #D5A441;
    --black: #171717;
    --background: #f5f5f5;
    --muted: #64748b;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background);
    font-family: Arial, Helvetica, sans-serif;
    color: var(--black);
    padding: 24px;
}

.login-container {
    width: 100%;
    max-width: 410px;
}

.brand {
    text-align: center;
    margin-bottom: 32px;
}

.brand-logo {
    display: block;
    width: 100%;
    max-width: 340px;
    height: auto;
    margin: 0 auto 20px;
}

.brand-subtitle {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 10px;
    color: #94701F;
    padding-left: 10px;
}

.brand p {
    color: var(--muted);
    font-size: 14px;
    margin-top: 12px;
}

.login-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 20px;
    border-top: 4px solid var(--gold);
    box-shadow: 0 12px 40px rgba(0,0,0,.08);
}

.login-card h2 {
    margin: 0;
    font-size: 28px;
    letter-spacing: -.5px;
}

.subtitle {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 28px;
}

label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

input {
    width: 100%;
    height: 54px;
    padding: 0 15px;
    border: 1px solid #d5d5d5;
    border-radius: 10px;
    font-size: 16px;
    margin-bottom: 20px;
    background: #fafafa;
}

input:focus {
    outline: 2px solid var(--gold);
    outline-offset: 1px;
}

button {
    width: 100%;
    height: 54px;
    border: 0;
    border-radius: 10px;
    background: var(--black);
    color: white;
    font-size: 15px;
    font-weight: bold;
    letter-spacing: 1px;
    cursor: pointer;
}

button:hover:not(:disabled) {
    background: var(--gold);
    color: var(--black);
}

button:disabled {
    opacity: .65;
    cursor: not-allowed;
}

.secure-note {
    text-align: center;
    color: var(--muted);
    font-size: 12px;
    margin-top: 22px;
}

footer {
    text-align: center;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
    margin-top: 28px;
}

@media (max-width: 480px) {
    body {
        padding: 20px;
    }

    .login-card {
        padding: 24px;
    }
}

.login-error {
    color: #b91c1c;
    font-size: 13px;
    line-height: 1.5;
}

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


/* SimplyAssist - Installazione PWA */

.install-app-section {
    margin-top: 20px;
    text-align: center;
}

.install-app-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px;
    border: 1px solid #D5A441;
    border-radius: 10px;
    color: #94701F;
    background: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: background .2s ease;
}

.install-app-link:hover {
    background: #faf4e5;
}

.install-app-link:focus-visible {
    outline: 2px solid #94701F;
    outline-offset: 3px;
}

.install-app-note {
    margin: 10px 0 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
}
