/**
 * css/custom/login.css
 * Stili moderni per login - Version 2.0
 * Bordo laterale + bottom stesso gradiente
 * Input completamente arrotondati
 */

/* ============================================
   VARIABILI DESIGN SYSTEM
   ============================================ */
:root {
    --login-text: #1a1a2e;
    --brand-primary-dark: #e04e0e;
    --brand-primary-light: #ff8a5c;
    --brand-gradient: linear-gradient(135deg, #ff5f1f 0%, #ff8a5c 100%);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    --focus-glow: rgba(255, 95, 31, 0.25);
    --text-primary: #1a1a2e;
    --text-secondary: #6c757d;
    --border-light: rgba(0, 0, 0, 0.08);
    --success-color: #10b981;
    --error-color: #ef4444;
}


/** user login */
.msg-user-login {
    margin-left     : 5px;
    font-size       : 14px;
    font-weight     : 400 !important;
    color           : var(----odoo-theme-dark) !important;
    letter-spacing  : -0.02em !important;
}

.msg-user-logged {
    margin-left     : 0px;
    font-size       : 20px;
    font-weight     : 400 !important;
    color           : var(--odoo-theme-light) !important;
    letter-spacing  : -0.02em !important;
}


.user-login {
    margin-left     : 0px;
    font-size       : 20px;
    font-weight     : 300 !important;
    color           : var(--odoo-theme-dark) !important;
    letter-spacing  : -0.02em !important;
}

.user-logot {
    margin-left     : 0px;
    font-size       : 30px;
    font-weight     : 400 !important;
    color           : var(--odoo-theme-dark) !important;
    letter-spacing  : -0.02em !important;
}



/* ============================================
   SEZIONE PRINCIPALE
   ============================================ */
.flat-spacing {
    padding     : 60px 0;
    background  : linear-gradient(135deg, #faf9ff 0%, #f0f2f5 100%);
    min-height  : calc(100vh - 200px);
}

.nuovoutente {
    margin          : 0 0 12px 0 !important;
    font-size       : 28px !important;
    font-weight     : 700 !important;
    line-height     : 1.12 !important;
    color           : var(--product-text-dark) !important;
    letter-spacing  : -0.02em !important;
}

.registrati-link {
    color           : var(--odoo-theme-dark);
    padding-left    : 15px;
    font-size       : 24px !important;
    font-weight     : 400 !important;
    line-height     : 1.12 !important;
    text-decoration : underline;
}

.registrati-link:hover {
    color           : var(--odoo-brand-accent);
    line-height     : 1.12 !important;
    font-weight     : 800 !important;
    text-decoration : underline;
}

.login-image img {
    border-radius   : 40px !important;
    height          : 100% !important;
}





/* Responsive titoli */
@media (max-width: 768px) {
    .heading {
        font-size: 24px;
        border-left-width: 3px;
        padding-left: 12px;
        margin-bottom: 20px;
        border-bottom-width: 2px;
        padding-bottom: 6px;
    }
}



/* ============================================
   ALERT MESSAGES
   ============================================ */
.alert {
    padding: 14px 20px;
    border-radius: 20px;  /* Arrotondato */
    margin-bottom: 24px;
    font-size: 14px;
    backdrop-filter: blur(8px);
    animation: slideIn 0.3s ease;
    border: none;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border-left: 4px solid var(--error-color);
    color: #991b1b;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border-left: 4px solid var(--success-color);
    color: #065f46;
}

.alert ul {
    margin: 0;
    padding-left: 20px;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   DIVIDER
   ============================================ */
hr {
    margin: 32px 0;
    border: none;
    height: 2px;
    background: var(--brand-gradient);
    border-radius: 2px;
}

/* ============================================
   VERIFICA CAP - RISULTATO
   ============================================ */
#cap_result {
    padding: 12px 18px;
    border-radius: 20px;  /* Arrotondato */
    font-size: 14px;
    animation: fadeIn 0.3s ease;
    margin-top: 16px;
}

#cap_result.success {
    background: rgba(16, 185, 129, 0.1);
    color: #065f46;
    border-left: 3px solid var(--success-color);
}

#cap_result.error {
    background: rgba(239, 68, 68, 0.1);
    color: #991b1b;
    border-left: 3px solid var(--error-color);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ============================================
   STATO CARICAMENTO BOTTONI
   ============================================ */
.tf-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.tf-btn.loading::after {
    content: '';
    width: 18px;
    height: 18px;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
    .flat-spacing {
        padding: 40px 0;
    }
    
    .form-container {
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .flat-spacing {
        padding: 30px 0;
    }
    
    .heading {
        font-size: 22px;
        padding-left: 12px;
        margin-bottom: 20px;
    }
    
    .form-control {
        padding: 12px 16px;
        font-size: 15px;
        border-radius: 24px;  /* Leggermente meno arrotondato su mobile */
    }
    
    .tf-btn {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .form-container {
        padding: 20px;
        border-radius: 24px;
    }
    
    .row {
        gap: 24px;
    }
}

/* ============================================
   UTILITY
   ============================================ */
.text-sub {
    color: var(--text-secondary);
    line-height: 1.5;
}

.mb-8 {
    margin-bottom: 32px;
}

.pb-3 {
    padding-bottom: 16px;
}

.mt-3 {
    margin-top: 16px;
}

.my-4 {
    margin-top: 24px;
    margin-bottom: 24px;
}