﻿:root {
    --g-start: #13C1AC;
    --g-end: #0f8f86;
    --card-bg: #ffffff;
    --accent: #0abd16;
    --muted: #6c757d;
    --radius: 14px;
}

.js-hidden {
    display: none !important;
}


html, body {
    height: 100%;
    font-family: -apple-system, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: linear-gradient(135deg, var(--g-start) 0%, var(--g-end) 100%);
    margin: 0;
}

.page-wrap {
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: env(safe-area-inset-top, 20px) 16px env(safe-area-inset-bottom, 20px);
}

.card-login {
    width: 100%;
    max-width: 420px;
    background: rgba(255,255,255,0.98);
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
    padding: 28px;
    text-align: center;
    overflow: hidden;
}

.brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

    /* Logo più grande ma con altezza massima fissa per evitare overflow */
    .brand img {
        width: auto;
        max-width: auto;
        height: auto;
        max-height: 120px; /* limite fisso applicato */
        object-fit: contain;
        border-radius: 8px;
        box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    }

.title {
    color: var(--g-end);
    font-weight: 700;
    font-size: 22px;
    letter-spacing: -0.2px;
    margin: 0;
}

.subtitle {
    font-size: 13px;
    color: var(--muted);
    margin: 0;
}

.form-control {
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 15px;
    border: 1px solid #e9ecef;
}

    .form-control:focus {
        box-shadow: 0 6px 24px rgba(19,193,172,0.08);
        border-color: var(--g-start);
    }

.btn-primary {
    border: none;
    background: linear-gradient(90deg, var(--g-start), var(--g-end));
    box-shadow: 0 6px 18px rgba(19,193,172,0.22);
    border-radius: 12px;
    padding: 12px 16px;
    font-weight: 600;
    letter-spacing: 0.6px;
    width: 100%;
}

.note {
    color: var(--muted);
    font-size: 10px;
    margin-top: 10px;
}

.otp-section {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px dashed #f0f0f0;
}

.otp-label {
    color: var(--g-end);
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.trust-device-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

    .trust-device-checkbox input[type="checkbox"] {
        width: 18px;
        height: 18px;
        accent-color: var(--g-start);
    }

.result-label {
    display: block;
    margin-top: 10px;
    font-size: 12px;
    color: var(--muted);
}

/* Sostituisce gli stili inline generati in precedenza dai controlli server
   (Font-Bold su lblPinTitle, Font-Size/ForeColor su lblOTPdata) */
.pin-title {
    font-weight: bold;
}

.otp-data-label {
    font-size: 8pt;
    color: white;
}

@media (max-width:380px) {
    .card-login {
        padding: 20px;
    }

    .brand img {
        width: 160px;
        max-height: 120px;
    }

    .title {
        font-size: 20px;
    }
}
