﻿/* 1. Wrapper: Aggiungiamo un velo scuro per far risaltare la card */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100vw;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('/images/sfondo.jpg');
    background-size: cover;
    background-position: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Card: Glassmorphism potenziato */
.login-card {
    background: rgba(255, 255, 255, 0.7); /* Leggermente più opaca per leggere bene */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    width: 420px;
    border-radius: 25px;
    padding: 3rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    color: #333; /* Testo scuro per massima leggibilità su fondo chiaro */
}

.login-header h2 {
    color: #222;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: #555;
    margin-bottom: 2rem;
}

/* Contenitore Input: Posizionamento relativo per l'icona */
.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

/* Icona dentro l'input */
.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 1.1rem;
    pointer-events: none; /* L'icona non blocca il click */
}

/* Input: Stile moderno con spazio per l'icona */
.form-control-lg {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 3rem; /* Padding sinistro aumentato per l'icona */
    font-size: 1rem;
    border-radius: 12px;
    border: 1px solid #ccc;
    background: #fff;
    box-sizing: border-box; /* Importante per non far uscire l'input dai bordi */
}

    .form-control-lg:focus {
        outline: none;
        border-color: #333;
        box-shadow: 0 0 0 2px rgba(0,0,0,0.1);
    }

/* Bottone: Stile scuro elegante */
.btn-gradient {
    width: 100%;
    padding: 0.9rem;
    background: #222;
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

    .btn-gradient:hover {
        background: #000;
    }