

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-color: #007A7A; 
    --text-dark: #222;
    --text-light: #777;
    --bg-light: #F9F9F9;
}

body {
    background-color: var(--bg-light);
}


/* --- Layout Pagina --- */
.auth-body {
    background-color: #fafafa; 
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


/* --- Main Content & Card --- */
.auth-main {
    display: flex;
    padding: 2rem;
    flex-direction: column; 
    align-items: center;    
    justify-content: center;
}


.auth-card {
    background-color: #ffffff;
    width: 100%;
    max-width: 400px;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); 
}

.auth-title {
    text-align: center;
    font-size: 1.8rem;
    color: #111;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

/* --- Tabs --- */
.auth-tabs {
    display: flex;
    border-bottom: 1px solid #eaeaea;
    margin-bottom: 1.5rem;
}

.auth-tab {
    flex: 1;
    text-align: center;
    padding: 0.75rem 0;
    text-decoration: none;
    color: #777;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.auth-tab.active {
    color: #111;
    border-bottom: 2px solid #111;
}

/* --- Form Inputs --- */
.input-group {
    margin-bottom: 1.25rem;
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 0.4rem;
}

.dimenticato {
    font-size: 0.8rem;
    color: #555;
    text-decoration: none;
}

.input-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.95rem;
    color: #333;
    outline: none;
    transition: border-color 0.2s ease;
}

.input-group input:focus {
    border-color: #007A7A;
}

/* --- Bottoni --- */
.btn-primary {
    width: 100%;
    background-color: #007A7A;
    color: #ffffff;
    border: none;
    padding: 0.85rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: background-color 0.2s ease;
}

.btn-primary:hover {
    background-color:#007A7A;
}

/* --- Separatore --- */
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: #999;
    font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #eaeaea;
}

.auth-divider span {
    padding: 0 10px;
}


.alert-success {
    background-color: #d4edda;
    color: #155724;
    padding: 15px 20px;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
    animation: fadeIn 0.5s ease-in-out;
}

.alert-error {
    width: 400px;

    background-color: #fee2e2; 
    color: #991b1b;           
    border: 1px solid #f87171;
    padding: 15px;            
    margin-bottom: 20px;       
    border-radius: 8px;        
    font-size: 14px;           
    text-align: center;       
    font-weight: 600;          
}

#login-alert {
    width: auto;
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 4px;
    font-weight: bold;
    text-align: center;
}

.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease-out; /* Svanisce gradualmente in mezzo secondo */
}

/* Piccola animazione per renderlo dinamico */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}