/* Reset e configurações globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0e1a 0%, #1a1f35 25%, #2c3e50 50%, #1e3a5f 75%, #0f1419 100%);
    min-height: 100vh;
    color: #e8f4fd;
    position: relative;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Scroll customizado */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(15, 20, 35, 0.5);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #3b82f6, #65baf5);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #65baf5, #4a9eff);
}

/* Efeito de partículas animadas */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(101, 186, 245, 0.6);
    border-radius: 50%;
    animation: float 8s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(100px);
        opacity: 0;
    }
}

/* Container principal */
.main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
    min-height: 100vh;
    justify-content: center;
    position: relative;
    z-index: 2;
}

/* Container geral */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* Header */
.header {
    background: rgba(15, 20, 35, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(101, 186, 245, 0.2);
    padding: 1rem 0;
    position: relative;
    z-index: 3;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 0 15px rgba(101, 186, 245, 0.5));
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        filter: drop-shadow(0 0 15px rgba(101, 186, 245, 0.5));
    }
    to {
        filter: drop-shadow(0 0 25px rgba(101, 186, 245, 0.8));
    }
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(45deg, #65baf5, #4a9eff, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: #a8c8ec;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: #65baf5;
    background: rgba(101, 186, 245, 0.1);
}

/* Main content */
.main-content {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    position: relative;
    z-index: 2;
}

/* Formulários */
.form-container {
    background: rgba(15, 20, 35, 0.95);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.6),
        0 0 50px rgba(101, 186, 245, 0.1),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(101, 186, 245, 0.2);
    text-align: center;
    max-width: 450px;
    width: 100%;
    position: relative;
    z-index: 2;
    animation: slideIn 1s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #65baf5, #4a9eff, #3b82f6);
    -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);
}

.form-header p {
    color: #a8c8ec;
    font-size: 1rem;
    opacity: 0.9;
}

.form-header img {
    height: 60px;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 20px rgba(101, 186, 245, 0.5));
    animation: glow 2s ease-in-out infinite alternate;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #65baf5;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(44, 62, 80, 0.3);
    border: 1px solid rgba(101, 186, 245, 0.3);
    border-radius: 12px;
    color: #e8f4fd;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.form-input:focus {
    outline: none;
    border-color: #65baf5;
    box-shadow: 
        0 0 0 3px rgba(101, 186, 245, 0.2),
        0 0 20px rgba(101, 186, 245, 0.1);
    background: rgba(44, 62, 80, 0.4);
}

.form-input::placeholder {
    color: #a8c8ec;
    opacity: 0.7;
}

.btn {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(45deg, #3b82f6, #1d4ed8, #1e40af);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 8px 20px rgba(59, 130, 246, 0.3),
        0 0 20px rgba(59, 130, 246, 0.2);
    position: relative;
    overflow: hidden;
    margin-top: 1rem;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 25px rgba(59, 130, 246, 0.4),
        0 0 30px rgba(59, 130, 246, 0.3);
}

.btn:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: linear-gradient(45deg, #2c3e50, #34495e);
    box-shadow: 
        0 8px 20px rgba(44, 62, 80, 0.3),
        0 0 20px rgba(44, 62, 80, 0.2);
}

.btn-secondary:hover {
    box-shadow: 
        0 12px 25px rgba(44, 62, 80, 0.4),
        0 0 30px rgba(44, 62, 80, 0.3);
}

/* Links */
.form-link {
    text-align: center;
    margin-top: 1.5rem;
}

.form-link a {
    color: #65baf5;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.form-link a:hover {
    color: #4a9eff;
    text-shadow: 0 0 10px rgba(101, 186, 245, 0.5);
}

.form-link p {
    color: #a8c8ec;
    margin-bottom: 0.5rem;
}

/* Alertas */
.alert {
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-weight: 500;
    animation: slideIn 0.5s ease-out;
}

.alert-success {
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.3);
    color: #4ade80;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

/* Dashboard */
.dashboard {
    padding: 2rem 0;
    position: relative;
    z-index: 2;
}

.dashboard-header {
    background: rgba(15, 20, 35, 0.95);
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 2rem;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.6),
        0 0 50px rgba(101, 186, 245, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(101, 186, 245, 0.2);
    text-align: center;
    animation: slideIn 1s ease-out;
}

.dashboard-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #65baf5, #4a9eff, #3b82f6);
    -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);
}

.dashboard-subtitle {
    color: #a8c8ec;
    font-size: 1.2rem;
    opacity: 0.9;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.dashboard-card {
    background: rgba(15, 20, 35, 0.95);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.6),
        0 0 50px rgba(101, 186, 245, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(101, 186, 245, 0.2);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.7),
        0 0 60px rgba(101, 186, 245, 0.2);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.card-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #65baf5, #4a9eff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.card-description {
    color: #a8c8ec;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Status indicator */
.status {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #a8c8ec;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    margin-right: 8px;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0% {
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(74, 222, 128, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0);
    }
}

/* Utility classes */
.text-center {
    text-align: center;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

/* Efeitos de validação */
.form-input.error {
    border-color: #f87171 !important;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.2) !important;
}

.field-error {
    color: #f87171;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: block;
}

/* Loading spinner */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsividade */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .form-container, .dashboard-header {
        padding: 2rem;
        margin: 1rem;
    }

    .navbar {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        gap: 15px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-title {
        font-size: 2rem;
    }

    .form-header h1 {
        font-size: 2rem;
    }

    .dashboard-card {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .form-container {
        margin: 0.5rem;
        padding: 1.5rem;
    }

    .dashboard-card {
        padding: 1.5rem;
    }

    .main-container {
        padding: 1rem;
    }
} 