.auth-container {
    display: flex;
    justify-content: center;
    padding: 50px 20px;
}

.auth-card {
    background: white;
    width: 100%;
    max-width: 420px;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid #eef2f7;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    font-size: 1.8rem;
    font-weight: 900;
    color: #1e293b;
    margin: 0;
}

.auth-header p {
    color: #64748b;
    margin-top: 5px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #59a9fd;
    font-size: 0.85rem;
    text-transform: uppercase;
}

/* Stile base per tutti gli input del form (incluso login_identity) */
.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="tel"],
.auth-form input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #f1f5f9;
    border-radius: 12px;
    background: #f8fafc;
    font-size: 1rem;
    transition: all 0.3s;
    box-sizing: border-box;
}

.auth-form input:focus {
    border-color: #59a9fd;
    background: white;
    outline: none;
    box-shadow: 0 0 0 4px rgba(89, 169, 253, 0.1);
}

.input-icon-group {
    position: relative;
    display: flex;
    align-items: center;
}

/* Padding destro extra per gli input che hanno l'icona toggle (password) */
.input-icon-group input {
    padding-right: 45px !important;
}

.toggle-password {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    z-index: 5;
}

/* Strength Meter */
.strength-meter {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    margin-top: 10px;
    overflow: hidden;
}

.bar {
    height: 100%;
    width: 0;
    transition: all 0.3s ease;
}

.bar.very-weak { background: #ef4444; }
.bar.weak { background: #f97316; }
.bar.medium { background: #eab308; }
.bar.strong { background: #22c55e; }
.bar.very-strong { background: #15803d; }

#strengthText {
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 5px;
    display: block;
    color: #64748b;
}

.btn-auth-primary {
    width: 100%;
    background-color: #59a9fd;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(89, 169, 253, 0.2);
    transition: all 0.3s;
}

.btn-auth-primary:hover {
    background-color: #4a90e2;
    transform: translateY(-2px);
}

.btn-auth-secondary {
    width: 100%;
    background-color: white;
    color: #475569;
    border: 2px solid #e2e8f0;
    padding: 12px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s;
}

.btn-auth-secondary:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
}

.divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    left: 0; top: 50%; width: 100%; height: 1px;
    background: #e2e8f0;
}

.divider span {
    position: relative;
    background: white;
    padding: 0 15px;
    color: #94a3b8;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
}

.auth-footer {
    margin-top: 25px;
    text-align: center;
    font-size: 0.9rem;
    color: #64748b;
}

.auth-footer a {
    color: #59a9fd;
    text-decoration: none;
    font-weight: 700;
}

.auth-options {
    text-align: right;
    margin-bottom: 15px;
}

.forgot-link {
    font-size: 0.8rem;
    color: #94a3b8;
    text-decoration: none;
}


/*register*/
/* Note: Questi stili integrano quelli presenti in auth.css
   aggiungendo rifiniture specifiche per la registrazione.
*/

.auth-header {
    margin-bottom: 25px;
    text-align: center;
}

.auth-header h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 8px;
}

.auth-header p {
    color: #64748b;
    font-size: 0.95rem;
}

.field-hint {
    display: block;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 4px;
}

.auth-alert {
    padding: 12px 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-alert.error {
    background-color: #fef2f2;
    color: #dc2626;
    border: 1px solid #fee2e2;
}

.strength-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
}

#strengthTip {
    color: #64748b;
    font-style: italic;
}

.btn-auth-primary {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.hidden { display: none; }

/* Classi dinamiche per il testo di feedback */
.very-weak { color: #ef4444; }
.weak { color: #f97316; }
.medium { color: #eab308; }
.strong { color: #22c55e; }
.very-strong { color: #15803d; }