﻿/* =========================================================
   Frutiger Aero Aesthetic Theme - login.php
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Segoe+UI:wght@400;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
    /* Gradiente cielo e acqua tropicale Frutiger Aero */
    background: linear-gradient(135deg, #1877c9 0%, #29a0dc 35%, #46c7cf 70%, #5fe3b3 100%);
}

/* Bolle di luce ed elementi organici di sfondo */
.aero-background {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    /* Effetto sfera glossy / bolla d'aria */
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.25) 40%, rgba(160, 235, 255, 0.15) 70%, rgba(255, 255, 255, 0.4) 100%);
    box-shadow: 0 10px 30px rgba(0, 100, 180, 0.25), inset 0 2px 5px rgba(255, 255, 255, 0.9);
    filter: blur(1px);
    animation: floatBubble 18s ease-in-out infinite alternate;
}

.bubble-1 {
    width: 320px;
    height: 320px;
    top: -60px;
    left: -80px;
    animation-duration: 16s;
}

.bubble-2 {
    width: 240px;
    height: 240px;
    bottom: -50px;
    right: -40px;
    animation-duration: 20s;
    animation-delay: -4s;
}

.bubble-3 {
    width: 140px;
    height: 140px;
    top: 55%;
    left: 8%;
    animation-duration: 14s;
    animation-delay: -2s;
}

.bubble-4 {
    width: 180px;
    height: 180px;
    top: 15%;
    right: 12%;
    animation-duration: 22s;
    animation-delay: -7s;
}

.bubble-5 {
    width: 90px;
    height: 90px;
    bottom: 18%;
    left: 45%;
    animation-duration: 12s;
    animation-delay: -5s;
}

@keyframes floatBubble {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(25px, -35px) scale(1.04);
    }
    100% {
        transform: translate(-20px, 25px) scale(0.97);
    }
}

/* =========================================================
   Card in Vetro Opaco (Frosted Glass / Windows Aero)
   ========================================================= */
.login-card {
    position: relative;
    width: 100%;
    max-width: 420px;
    border-radius: 26px;
    padding: 38px 34px;
    z-index: 10;
    
    /* Vetro semi-trasparente satinato */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.52) 0%, rgba(255, 255, 255, 0.22) 100%);
    backdrop-filter: blur(22px) saturate(190%);
    -webkit-backdrop-filter: blur(22px) saturate(190%);
    
    /* Bordo speculare con riflesso di luce dall'alto */
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-top: 1.5px solid rgba(255, 255, 255, 0.95);
    border-left: 1.5px solid rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    
    /* Profondità e bagliore aero */
    box-shadow: 
        0 24px 48px rgba(3, 49, 92, 0.22),
        0 8px 16px rgba(0, 80, 150, 0.12),
        inset 0 1.5px 1.5px rgba(255, 255, 255, 0.95),
        inset 0 -1.5px 2px rgba(255, 255, 255, 0.2);
    
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-card:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 28px 56px rgba(3, 49, 92, 0.26),
        0 10px 20px rgba(0, 80, 150, 0.15),
        inset 0 1.5px 1.5px rgba(255, 255, 255, 0.98);
}

/* Riflesso glossy a semiarco tipico di Windows Aero */
.glass-glare {
    position: absolute;
    top: 0;
    left: -20%;
    right: -20%;
    height: 55%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0.08) 75%, transparent 100%);
    border-radius: 0 0 50% 50%;
    pointer-events: none;
}

/* Header & Titolo */
.card-header {
    text-align: center;
    margin-bottom: 26px;
    position: relative;
    z-index: 2;
}

.aero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    margin-bottom: 14px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(185, 235, 255, 0.6) 100%);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 18px rgba(0, 95, 170, 0.2), inset 0 2px 3px rgba(255, 255, 255, 0.95);
    color: #0d6db5;
    font-size: 1.55rem;
}

.card-header h2 {
    color: #0c3b60;
    font-weight: 700;
    font-size: 1.65rem;
    letter-spacing: -0.3px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.85);
    margin-bottom: 6px;
}

.card-header .subtitle {
    color: #1a5682;
    font-size: 0.88rem;
    font-weight: 500;
    opacity: 0.9;
}

/* Campi Form */
form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    z-index: 2;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

label {
    font-size: 0.84rem;
    font-weight: 600;
    color: #0f4974;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 6px;
}

label i {
    font-size: 0.82rem;
    color: #0284c7;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 13px 16px;
    font-size: 0.95rem;
    color: #0b3455;
    border-radius: 14px;
    outline: none;
    transition: all 0.25s ease;
    
    /* Vetro satinato per gli input */
    background: rgba(255, 255, 255, 0.68);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    box-shadow: inset 0 2px 4px rgba(10, 50, 90, 0.06), 0 2px 6px rgba(0, 0, 0, 0.02);
}

input[type="text"]::placeholder,
input[type="password"]::placeholder {
    color: #618dae;
}

input[type="text"]:focus,
input[type="password"]:focus {
    background: rgba(255, 255, 255, 0.95);
    border-color: #2fb4f0;
    box-shadow: 
        0 0 0 4px rgba(47, 180, 240, 0.22),
        inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

/* =========================================================
   Pulsante Frutiger Aero Glossy (Skeuomorphic Glass)
   ========================================================= */
.aero-button {
    position: relative;
    width: 100%;
    padding: 13px 20px;
    margin-top: 10px;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    overflow: hidden;
    
    /* Il classico gradiente split-tone glossy dell'era Vista/Aero */
    background: linear-gradient(180deg, 
        #5cd1f8 0%, 
        #299fe8 50%, 
        #127fd7 51%, 
        #1d8ae0 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-top: 1.5px solid rgba(255, 255, 255, 0.95);
    
    box-shadow: 
        0 8px 18px rgba(18, 127, 215, 0.38),
        inset 0 1px 1px rgba(255, 255, 255, 0.85),
        inset 0 -2px 3px rgba(0, 60, 130, 0.2);
    
    transition: all 0.25s ease;
}

.aero-button:hover {
    transform: translateY(-1.5px);
    background: linear-gradient(180deg, 
        #72dbff 0%, 
        #38abf0 50%, 
        #1a8bea 51%, 
        #269bf0 100%
    );
    box-shadow: 
        0 12px 24px rgba(18, 127, 215, 0.48),
        inset 0 1px 1.5px rgba(255, 255, 255, 0.95);
}

.aero-button:active {
    transform: translateY(1px);
    background: linear-gradient(180deg, 
        #1886dc 0%, 
        #1478c9 50%, 
        #0e6bb5 51%, 
        #137dd0 100%
    );
    box-shadow: 
        0 4px 10px rgba(18, 127, 215, 0.3),
        inset 0 2px 3px rgba(0, 0, 0, 0.2);
}

.btn-text {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 2px rgba(0, 45, 95, 0.55);
}

/* Messaggio di Errore */
.error-msg {
    margin-top: 14px;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #9f1239;
    background: rgba(255, 228, 230, 0.75);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(253, 164, 175, 0.8);
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    z-index: 2;
}

/* Footer & Link */
.card-footer {
    text-align: center;
    margin-top: 22px;
    position: relative;
    z-index: 2;
}

.card-footer p {
    font-size: 0.88rem;
    color: #134e77;
    font-weight: 500;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.6);
}

.card-footer a {
    color: #0369a1;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1.5px solid rgba(3, 105, 161, 0.4);
    transition: all 0.2s ease;
    padding-bottom: 1px;
}

.card-footer a:hover {
    color: #0284c7;
    border-bottom-color: #0284c7;
    text-shadow: 0 0 8px rgba(186, 230, 253, 0.8);
}
