/* Layout Autenticazione */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fcf3ea;
    padding: 20px;
}

.auth-form-container {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.auth-image {
    position: relative;
    overflow: hidden;
    display: none;
}

.auth-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.auth-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.auth-image-content {
    color: white;
    max-width: 500px;
}

.auth-image-content h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.auth-image-content p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.auth-testimonial {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 25px;
    margin-top: 40px;
}

.auth-testimonial p {
    font-style: italic;
    font-size: 1rem;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.testimonial-author p {
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.8;
}

/* Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6c757d;
    margin-bottom: 30px;
    transition: color 0.3s ease;
    text-decoration: none;
}

.back-link:hover {
    color: #007bff;
}

/* Auth Header */
.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-header .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    gap: 15px;
}

.auth-header .logo img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 6px;
}

.auth-header h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.auth-header p {
    color: #6c757d;
}

/* Auth Form */
.auth-form {
    width: 100%;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

.input-with-icon input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-with-icon input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    outline: none;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
}

.remember-me input {
    width: 16px;
    height: 16px;
    accent-color: #007bff;
}

.forgot-password {
    color: #007bff;
    transition: color 0.3s ease;
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

.btn-block {
    width: 100%;
}

.auth-separator {
    position: relative;
    text-align: center;
    margin: 30px 0;
}

.auth-separator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 45%;
    height: 1px;
    background-color: #ddd;
}

.auth-separator::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    width: 45%;
    height: 1px;
    background-color: #ddd;
}

.auth-separator span {
    background-color: white;
    padding: 0 15px;
    color: #6c757d;
    position: relative;
    z-index: 1;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    color: #6c757d;
}

.auth-footer a {
    color: #007bff;
    font-weight: 500;
    transition: color 0.3s ease;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Response Messages */
.auth-message {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-message.error {
    background-color: rgba(244, 67, 54, 0.1);
    color: #f44336;
}

.auth-message.success {
    background-color: rgba(76, 175, 80, 0.1);
    color: #28a745;
}

/* Responsive Styles */
@media (min-width: 992px) {
    .auth-image {
        display: block;
    }
}

@media (max-width: 768px) {
    .auth-form-container {
        padding: 30px 20px;
    }
    
    .auth-header h2 {
        font-size: 1.6rem;
    }
    
    .auth-header .logo img {
        width: 50px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .auth-container {
        padding: 10px;
    }
    
    .auth-form-container {
        padding: 25px 15px;
    }
    
    .auth-header .logo {
        flex-direction: column;
        gap: 10px;
    }
}