﻿/* === STILE PAGINA LOGIN === */

/* Applica lo stesso sfondo della home */
html, body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    min-height: 100vh;
    font-family: 'Roboto', sans-serif;
    background: #111827;
    color: #e0fcff;
}

.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    width: 100%;
    box-sizing: border-box; /* Assicura che il padding non rompa il layout */
}

/* Stili header presi da home.css per coerenza */
.page-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    z-index: 20;
}

.header-logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

    .header-logo-container a {
        text-decoration: none;
        line-height: 0; /* Rimuove spazio extra sotto l'immagine linkata */
    }

.header-logo {
    height: 40px;
    width: auto;
    border-radius: 4px;
}

.header-text {
    font-size: 1.1rem;
    font-weight: 500;
    color: #e0fcff;
    opacity: 0.8;
}
/* Fine stili header */

/* Card di Login con effetto vetro */
.login-card {
    background: rgba(14, 22, 38, 0.86);
    backdrop-filter: blur(17px);
    border: 2px solid #60a5fa33;
    border-radius: 18px;
    padding: 2.5rem 3rem;
    width: 100%;
    max-width: 450px;
    z-index: 10;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.login-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    font-size: 1.1rem;
    color: #a8edea;
    margin-bottom: 2rem;
}

.login-error {
    background-color: #5c0f1a;
    color: #f7c5cb;
    border: 1px solid #e14760;
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

    .form-group label {
        display: block;
        margin-bottom: 0.5rem;
        font-weight: 500;
        color: #e0fcff;
    }

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #60a5fa55;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

    .form-control:focus {
        outline: none;
        border-color: #67e8f9;
        box-shadow: 0 0 15px #67e8f930;
    }

/* Stile per ValidationMessage (presuppone Blazor Identity) */
.validation-message {
    color: #f7c5cb;
    font-size: 0.9rem;
    text-align: left;
    margin-top: 0.25rem;
}

.form-group-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

    .form-group-checkbox label {
        color: #e0fcff;
        font-weight: 400;
    }

/* Bottone Login (usa le classi di home.css) */
.btn.btn-primary.btn-login {
    width: 100%;
    padding: 1rem;
    font-size: 1.2rem;
    justify-content: center;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

    .btn.btn-primary.btn-login:hover {
        transform: translateY(-4px) scale(1.02);
    }

.login-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

    .login-links a {
        color: #67e8f9;
        text-decoration: none;
        transition: color 0.3s ease;
    }

        .login-links a:hover {
            color: #a8edea;
            text-decoration: underline;
        }

/* Responsive per mobile */
@media (max-width: 768px) {
    .login-card {
        padding: 2rem 1.5rem;
        border: 1px solid #60a5fa33; /* Rimuove bordo doppio su mobile se troppo pesante */
    }

    .login-title {
        font-size: 2rem;
    }

    /* Nasconde testo header su mobile, centra logo */
    .header-text {
        display: none;
    }

    .page-header {
        padding: 1.5rem;
        display: flex;
        justify-content: center;
    }

    .login-container {
        justify-content: center;
        padding-top: 8rem; /* Spazio per il logo centrato */
    }
}
