/* ==========================================================================
   CSS Variables & Theme (Base do site Miclos Tecnologia)
   ========================================================================== */
:root {
    /* Brand Colors */
    --color-dark-base: #030712;
    --color-dark-surface: #0c1a31;
    --color-primary: #d6deed;
    --color-secondary: #faa536;
    --color-text-main: #F8FAFC;
    --color-text-muted: #b6bccb;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--color-primary), #113f7f);
    --gradient-gold: linear-gradient(135deg, var(--color-secondary), #d97706);
    --gradient-glass: linear-gradient(135deg, rgba(17, 63, 127, 0.15), rgba(12, 26, 49, 0.05));

    /* Effects */
    --glow-primary: 0 0 20px rgba(214, 222, 237, 0.5);
    --glow-secondary: 0 0 20px rgba(250, 165, 54, 0.5);
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    --glass-blur: blur(12px);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-dark-base);
    color: var(--color-text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Evitar scroll no painel de login */
}

/* Canvas Background */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Typography Utilities */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 800;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================================================
   Login Area Styles
   ========================================================================== */
.login-container {
    width: 100%;
    max-width: 450px;
    padding: 24px;
    z-index: 1;
    animation: fadeIn 0.8s ease-out forwards;
}

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

.login-glass-panel {
    background: var(--gradient-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(214, 222, 237, 0.2);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.login-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.login-logo img {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(214, 222, 237, 0.4));
}

.login-glass-panel h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--color-text-main);
}

.login-glass-panel p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 30px;
}

/* Form Styles */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
}

.input-group {
    position: relative;
}

.input-group label {
    display: block;
    font-size: 0.9rem;
    color: var(--color-primary);
    margin-bottom: 8px;
    font-weight: 500;
}

.input-group input {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 14px 16px;
    padding-left: 45px;
    border-radius: 8px;
    color: var(--color-text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.input-group i {
    position: absolute;
    left: 16px;
    top: 49px; /* Ajuste visual pro icone ficar centralizado no input */
    color: var(--color-text-muted);
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.input-group input:focus {
    border-color: rgba(250, 165, 54, 0.5);
    background: rgba(0, 0, 0, 0.4);
}

.input-group input:focus + i {
    color: var(--color-secondary);
}

.input-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--color-secondary);
    transition: width 0.3s ease;
    box-shadow: var(--glow-secondary);
    border-radius: 0 0 8px 8px;
}

.input-group input:focus ~ .input-border {
    width: 100%;
}

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    margin-top: -5px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-muted);
    cursor: pointer;
}

.forgot-password {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: var(--color-secondary);
    text-shadow: 0 0 10px rgba(250, 165, 54, 0.4);
}

/* Button */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--gradient-gold);
    color: var(--color-dark-base);
    box-shadow: var(--glow-secondary);
    margin-top: 10px;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #d97706, var(--color-secondary));
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(250, 165, 54, 0.8);
}

.btn-block {
    width: 100%;
    font-size: 1.1rem;
    gap: 10px;
}

.login-footer {
    margin-top: 25px;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.login-footer a {
    color: var(--color-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.login-footer a:hover {
    text-decoration: underline;
    text-shadow: 0 0 10px rgba(250, 165, 54, 0.3);
}

/* Return to Home link */
.return-home {
    position: absolute;
    top: 30px;
    left: 40px;
    color: var(--color-text-main);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    z-index: 10;
}

.return-home:hover {
    color: var(--color-secondary);
    transform: translateX(-5px);
}

@media (max-width: 480px) {
    .login-glass-panel {
        padding: 30px 20px;
    }
    .return-home {
        top: 20px;
        left: 20px;
    }
}
