/* Glass Morphism Login Page - Farol Operacional */

/* Animações modernas */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes glow {
    0%,
    100% {
        box-shadow: 0 0 20px rgba(0, 120, 212, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 120, 212, 0.6);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Fundo dinâmico com partículas */
.login-page {
    position: relative;
    background: linear-gradient(135deg, #0f2027 0%, #203a43 35%, #2c5364 100%);
    min-height: 100vh;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><radialGradient id="grad" cx="50%" cy="50%" r="50%"><stop offset="0%" style="stop-color:rgba(255,255,255,0.1);stop-opacity:1" /><stop offset="100%" style="stop-color:rgba(255,255,255,0);stop-opacity:0" /></radialGradient></defs><circle cx="20" cy="20" r="2" fill="url(%23grad)"><animate attributeName="opacity" values="0;1;0" dur="3s" repeatCount="indefinite" begin="0s"/></circle><circle cx="80" cy="40" r="1.5" fill="url(%23grad)"><animate attributeName="opacity" values="0;1;0" dur="4s" repeatCount="indefinite" begin="1s"/></circle><circle cx="40" cy="80" r="2.5" fill="url(%23grad)"><animate attributeName="opacity" values="0;1;0" dur="5s" repeatCount="indefinite" begin="2s"/></circle></svg>')
        repeat;
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

/* Card principal com glass morphism */
.glass-card {
    backdrop-filter: blur(20px) saturate(180%);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    animation: fadeIn 1s ease-out;
    transition: all 0.3s ease;
    max-width: 450px;
    margin: auto;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.05),
        transparent
    );
    animation: shimmer 3s infinite;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Logo com efeito flutuante */
.glass-card img {
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.glass-card img:hover {
    transform: scale(1.05);
}

/* Títulos modernos */
.glass-card h1 {
    background: linear-gradient(45deg, #ffffff, #e3f2fd, #bbdefb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 15px;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
}

.glass-card p {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 300;
    font-size: 1.1em;
    margin-bottom: 35px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Botão de login moderno */
.login-button {
    background: linear-gradient(
        135deg,
        rgba(0, 120, 212, 0.8) 0%,
        rgba(40, 160, 240, 0.8) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    color: white;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0, 120, 212, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    min-width: 240px;
    justify-content: center;
}

.login-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.15),
        transparent
    );
    transition: left 0.5s ease;
}

.login-button:hover {
    transform: translateY(-2px);
    background: linear-gradient(
        135deg,
        rgba(0, 120, 212, 0.9) 0%,
        rgba(40, 160, 240, 0.9) 100%
    );
    box-shadow: 0 8px 25px rgba(0, 120, 212, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    animation: glow 2s infinite alternate;
}

.login-button:hover::before {
    left: 100%;
}

.login-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 120, 212, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Ícone Microsoft */
.ms-icon {
    width: 20px;
    height: 20px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.login-button:hover .ms-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Texto de ajuda */
.glass-card small {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9em;
    display: block;
    margin-top: 20px;
    font-weight: 300;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Marca d'água da empresa */
.company-watermark {
    position: absolute;
    top: 20px;
    left: 30px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    padding: 8px 15px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.company-watermark:hover {
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.08);
}

/* Responsividade */
@media (max-width: 768px) {
    .glass-card {
        margin: 20px;
        padding: 30px 25px;
        max-width: none;
    }

    .glass-card h1 {
        font-size: 2.2em;
    }

    .login-button {
        min-width: 200px;
        padding: 12px 25px;
        font-size: 15px;
    }

    .company-watermark {
        top: 15px;
        left: 15px;
        font-size: 12px;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .glass-card {
        margin: 15px;
        padding: 25px 20px;
    }

    .glass-card h1 {
        font-size: 1.8em;
    }

    .glass-card p {
        font-size: 1em;
    }

    .login-button {
        min-width: 180px;
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Efeitos de entrada suaves */
.fade-in {
    animation: fadeIn 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Estados de loading (se necessário) */
.login-button.loading {
    pointer-events: none;
    opacity: 0.8;
}

.login-button.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
