﻿body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.password-container {
    position: relative;
    width: 100%;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #9aa0a6;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    z-index: 10;
}

    .password-toggle:hover {
        color: #3b4d81;
    }

/* Sfondo a tutto schermo */
.login-wrapper {
    min-height: 100vh;
    width: 100%;
    background-color: #27345;
    background-size: cover;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

    /* Overlay scuro */
    .login-wrapper::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.15);
        z-index: 0;
    }

/* La Card Bianca */
.login-card {
    background-color: white;
    border: none;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
    margin: 15px;
}

/* Stili del Logo */
.logo-area {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-icon {
    font-size: 2.5rem;
    color: #3b4d81;
    vertical-align: middle;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: #3b4d81;
    letter-spacing: 2px;
    margin-left: 10px;
    vertical-align: middle;
    text-transform: uppercase;
}

.subtitle-text {
    font-size: 0.9rem;
    color: #6c757d;
    text-align: center;
    margin-top: 10px;
    line-height: 1.4;
}

/* Stili Input condivisi per tutte le pagine */
.form-label-custom {
    font-size: 0.85rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 6px;
    display: block;
}

.custom-input {
    background-color: #eef1f8;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 12px 15px;
    font-size: 0.95rem;
    color: #495057;
    width: 100%;
}

    .custom-input:focus {
        background-color: #fff;
        border-color: #3b4d81;
        box-shadow: 0 0 0 3px rgba(59, 77, 129, 0.15);
        outline: none;
    }

.btn-brand {
    background-color: #3b4d81;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    width: 100%;
    margin-top: 1rem;
    transition: background 0.2s;
}

    .btn-brand:hover {
        background-color: #2c3a63;
        color: white;
    }

.forgot-link {
    font-size: 0.85rem;
    color: #6c757d;
    text-decoration: underline;
    display: block;
    margin-top: 15px;
}
