/* Estilo Tecnológico para Telas de Login */

.login-page-tech {
    min-height: 100vh;
    background: #0a0e27;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Página de cadastro: permitir rolagem e conteúdo do topo */
.login-page-tech.page-cadastro {
    overflow-x: hidden;
    overflow-y: auto;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 40px 20px 60px;
    box-sizing: border-box;
}
.login-page-tech.page-cadastro .login-container-tech {
    flex: 0 0 auto;
    margin: 0 auto;
    padding-bottom: 40px;
}

/* Canvas para partículas */
#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Container de login */
.login-container-tech {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 450px;
    padding: 20px;
}

/* Box de login */
.login-box-tech {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(59, 130, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.login-box-tech::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        #3b82f6, 
        #8b5cf6, 
        #ec4899, 
        #3b82f6, 
        transparent
    );
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.login-box-tech::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

/* Header */
.login-header-tech {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.login-header-tech h1 {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    text-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { filter: brightness(1); }
    to { filter: brightness(1.2); }
}

.login-header-tech p {
    color: #94a3b8;
    font-size: 14px;
    margin: 0;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Formulário */
.login-box-tech form {
    position: relative;
    z-index: 2;
}

.form-group-tech {
    margin-bottom: 20px;
}

.form-group-tech label {
    display: block;
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group-tech input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 10px;
    color: #f1f5f9;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group-tech input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 
        0 0 0 3px rgba(59, 130, 246, 0.1),
        0 0 20px rgba(59, 130, 246, 0.3);
    background: rgba(30, 41, 59, 1);
}

.form-group-tech input::placeholder {
    color: #64748b;
}

/* Botão */
.btn-tech {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border: none;
    border-radius: 10px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    margin-top: 10px;
}

.btn-tech::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-tech:hover::before {
    left: 100%;
}

.btn-tech:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 10px 30px rgba(59, 130, 246, 0.4),
        0 0 20px rgba(139, 92, 246, 0.3);
}

.btn-tech:active {
    transform: translateY(0);
}

/* Footer */
.login-footer-tech {
    margin-top: 25px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.login-footer-tech a {
    color: #3b82f6;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
    margin: 0 10px;
}

.login-footer-tech a:hover {
    color: #8b5cf6;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

/* Alertas */
.alert-tech {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
    border: 1px solid;
}

.alert-error-tech {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.alert-success-tech {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
    color: #86efac;
}

/* Link admin */
.link-admin-tech {
    color: #8b5cf6 !important;
    font-weight: 500;
}

.link-admin-tech:hover {
    color: #a78bfa !important;
}

/* Cadastro - box um pouco mais largo */
.cadastro-box-tech {
    max-width: 100%;
}
.login-container-tech .cadastro-box-tech {
    max-width: 480px;
}
.cadastro-box-tech .form-group-tech {
    margin-bottom: 16px;
}
.cadastro-box-tech .opcional {
    font-size: 12px;
    color: #94a3b8;
    font-weight: normal;
}
.link-cadastro-tech {
    font-weight: 600;
}

/* Banner PWA - Topo (mantido para compatibilidade) */
.install-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(59, 130, 246, 0.3);
    padding: 12px 20px;
    z-index: 10000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Banner PWA - Parte Inferior */
.install-banner-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(59, 130, 246, 0.3);
    padding: 12px 20px;
    z-index: 10000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.install-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.install-icon {
    font-size: 24px;
}

.install-text {
    flex: 1;
    min-width: 200px;
}

.install-text strong {
    display: block;
    color: #f1f5f9;
    font-size: 14px;
    margin-bottom: 2px;
}

.install-text small {
    display: block;
    color: #94a3b8;
    font-size: 12px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-close {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.btn-close:hover {
    color: #f1f5f9;
}

/* Responsivo */
@media (max-width: 480px) {
    .login-box-tech {
        padding: 30px 20px;
    }
    
    .login-header-tech h1 {
        font-size: 24px;
    }
    
    .install-banner-content {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Efeitos de grid tecnológico no fundo */
.tech-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    background-image: 
        linear-gradient(rgba(59, 130, 246, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
}
