/* Vouchiva — Area Dipendenti: layout login/registrazione.
   Sfondo viola/blu con pattern decorativo (quadrati + anello), coerente con
   l'identità visiva già usata per il banner del plugin. Palette dedicata a
   questa pagina (non i token --vch-primary/--vch-accent usati altrove: qui
   si richiama volutamente il viola/blu del banner). */

:root {
    --vch-radius:  12px;
    --vch-shadow:  0 4px 20px rgba(0,0,0,.08);
}

body, html {
    margin: 0 !important;
    padding: 0 !important;
    height: 100%;
}

.vch-auth-container {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    width: 100%;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;

    background: linear-gradient(135deg, #5B4FE8 0%, #4B42D6 55%, #4038C9 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ─── Pattern decorativo: quadrati, puntini, anello ────────────────────── */

.vch-auth-container .vch-shape {
    position: absolute;
    pointer-events: none;
}
.vch-shape-ring {
    top: -170px;
    right: -170px;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    border: 14px solid rgba(255,255,255,.55);
}
.vch-shape-sq-lg {
    top: 14%;
    left: 12%;
    width: 46px;
    height: 46px;
    background: rgba(255,255,255,.95);
    border-radius: 6px;
    transform: rotate(-12deg);
}
.vch-shape-sq-sm {
    top: 24%;
    left: 7%;
    width: 20px;
    height: 20px;
    background: rgba(255,255,255,.85);
    border-radius: 4px;
    transform: rotate(-12deg);
}
.vch-shape-dot-1 {
    top: 10%;
    left: 22%;
    width: 11px;
    height: 11px;
    background: #FFB238;
    border-radius: 3px;
    transform: rotate(10deg);
}
.vch-shape-dot-2 {
    bottom: 30%;
    right: 14%;
    width: 9px;
    height: 9px;
    background: #FFB238;
    border-radius: 2px;
}
.vch-shape-sq-br {
    bottom: 12%;
    right: 9%;
    width: 26px;
    height: 26px;
    background: rgba(255,255,255,.9);
    border-radius: 6px;
    transform: rotate(8deg);
}
.vch-shape-blob {
    bottom: -120px;
    left: -80px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,178,56,.35) 0%, rgba(255,178,56,0) 70%);
}

@media screen and (max-width: 600px) {
    .vch-shape-sq-lg, .vch-shape-sq-sm, .vch-shape-dot-1, .vch-shape-sq-br { display: none; }
    .vch-shape-ring { width: 220px; height: 220px; top: -110px; right: -110px; border-width: 10px; }
}

/* ─── Box di autenticazione ─────────────────────────────────────────────── */

.vch-auth-box {
    position: relative;
    z-index: 1;
    background-color: #fff;
    margin: 0;
    padding: 40px 50px;
    border-radius: var(--vch-radius);
    box-shadow: 0 20px 50px rgba(20, 14, 90, .35);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.vch-logo-area { margin-bottom: 18px; }
.vch-logo-area .vch-wordmark {
    font-size: 1.7em;
    font-weight: 800;
    color: #4038C9;
    letter-spacing: -.5px;
}

.vch-auth-title {
    font-size: 1.4em;
    color: #1a1a2e;
    margin: 0 0 25px;
    font-weight: 700;
}

.vch-auth-box #vch_login_form p,
.vch-auth-box #vch-registration-form p {
    margin-bottom: 18px;
    text-align: left;
}

.vch-auth-box #vch_login_form label,
.vch-auth-box #vch-registration-form label {
    display: block;
    margin-bottom: 5px;
    font-size: .9em;
    color: #555;
    font-weight: 500;
}

.vch-auth-box .vch-input-field,
.vch-auth-box #user,
.vch-auth-box #pass {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 1em;
    transition: border-color .3s;
}
.vch-auth-box .vch-input-field:focus,
.vch-auth-box #user:focus,
.vch-auth-box #pass:focus {
    border-color: #5B4FE8;
    box-shadow: 0 0 0 3px rgba(91,79,232,.15);
    outline: none;
}

.vch-auth-box .vch-submit-button { margin-top: 22px; }

.vch-auth-box .vch-submit-button #wp-submit,
.vch-auth-box .vch-submit-button button[type="submit"],
.vch-auth-box .vch-submit-button input[type="submit"] {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, #5B4FE8 0%, #4038C9 100%) !important;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.05em;
    font-weight: 700;
    cursor: pointer;
    transition: opacity .2s ease;
    box-shadow: none !important;
    text-shadow: none !important;
}
.vch-auth-box .vch-submit-button #wp-submit:hover,
.vch-auth-box .vch-submit-button button[type="submit"]:hover,
.vch-auth-box .vch-submit-button input[type="submit"]:hover {
    opacity: .92;
}

.vch-auth-box .vch-error-message {
    background-color: #fbeaea;
    color: #c53030;
    border: 1px solid #f3c9c9;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: .9em;
    text-align: left;
}

.vch-auth-box .vch-auth-link {
    margin-top: 16px;
    font-size: .9em;
}
.vch-auth-box .vch-auth-link a {
    color: #4038C9;
    text-decoration: none;
    font-weight: 600;
}
.vch-auth-box .vch-auth-link a:hover { text-decoration: underline; }

@media screen and (max-width: 480px) {
    .vch-auth-box { padding: 30px 22px; }
}
