/* Login Page Styles - Identidade visual Pinho */

/* Variáveis */
:root {
    --background-dark: #000;
    --text-light: #fff;
    --accent1: rgba(255, 176, 0, 0.3);
    --shadow-md: 0 25px 50px rgba(0,0,0,0.3);
    --shadow-lg: 0 30px 60px rgba(0,0,0,0.4);
    --primary-color: #00529B;
    --primary-dark: #003366;
    --primary-light: #4D99CC;
    --secondary-color: #00A859;
    --secondary-light: #66CC66;
    --text-gray: #CCCCCC;
}

/* Layout */
body {
    background-color: var(--background-dark);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    overflow: hidden;
    color: var(--text-light);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

/* Classe para mostrar o conteúdo após o DOM estar carregado */
body.dom-loaded {
    opacity: 1;
}

.container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Login Container */
.login-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: 40px;
    background-color: rgba(18, 18, 18, 0.7);
    border-radius: 24px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
    transform: translateY(0);
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.login-container:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Logo e Título */
.logo {
    display: block;
    width: 180px;
    margin: 0 auto 40px;
    filter: drop-shadow(0 10px 15px var(--accent1));
    transform: scale(1);
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.logo:hover {
    transform: scale(1.1) rotate(2deg);
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    font-weight: 500;
    font-size: 28px;
    color: var(--primary-color);
}

/* Formulário */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    position: relative;
}

.input-group i {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    color: var(--text-gray);
    transition: color 0.3s ease;
}

.input-group input:focus + i {
    color: var(--primary-color);
}

/* Campos de entrada */
.login-form input {
    width: 100%;
    padding: 15px 20px;
    margin-bottom: 20px;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-light);
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

.login-form input:focus {
    border-color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(0, 82, 155, 0.2);
}

/* Botão de login */
.login-button {
    width: 100%;
    padding: 15px;
    background-color: var(--primary-color);
    color: var(--text-light);
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.login-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 82, 155, 0.2);
}

.login-button:active {
    transform: translateY(1px);
}

/* Link de recuperação de senha */
.form-footer {
    margin-top: 25px;
    text-align: center;
    font-size: 14px;
    color: var(--text-gray);
}

.form-footer a {
    color: var(--secondary-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.form-footer a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Loading bar */
.loading-bar {
    position: absolute;
    bottom: -40px;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    border-radius: 3px;
    transition: width 0.4s ease;
    opacity: 0;
}

.login-container.loading .loading-bar {
    opacity: 1;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% { width: 0%; left: 0; }
    50% { width: 70%; }
    100% { width: 0%; left: 100%; }
}

/* Animação de partículas */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Estilos específicos para a página de login */
body.login-page {
    background-color: var(--background);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    background-color: white;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 450px;
    padding: 2.5rem;
    position: relative;
    z-index: 2;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-container {
    margin-bottom: 1.5rem;
}

.logo-image {
    height: 60px;
}

.login-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

.login-form {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background-color: white;
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 82, 155, 0.15);
    outline: none;
}

.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.form-check-input {
    margin-right: 0.5rem;
}

.form-check-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.login-button {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.login-footer {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.login-link {
    color: var(--primary);
    font-weight: 500;
    transition: all 0.3s ease;
}

.login-link:hover {
    color: var(--primary-dark);
}

/* Animações exclusivas para a página de login */
.login-animation {
    display: block;
}

/* Background gradient */
.login-background-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 82, 155, 0.05) 0%, rgba(255, 203, 5, 0.03) 100%);
    z-index: -1;
}

/* Canvas de partículas */
#login-particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

/* Versão responsiva */
@media (max-width: 576px) {
    .login-container {
        max-width: 90%;
        padding: 1.5rem;
    }
    
    .logo-image {
        height: 50px;
    }
    
    .login-title {
        font-size: 1.25rem;
    }
}