:root {
    --primary: #007AFF; /* Azul Apple/Moderno */
    --primary-hover: #005ec5;
    --bg: #000000;
    --card-bg: #0a0a0a;
    --input-bg: #121212;
    --border: #1f1f1f;
    --text-main: #ffffff;
    --text-secondary: #a1a1a1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: auto;
    padding: 20px;
    /* Gradiente de fundo muito sutil para profundidade */
    background: radial-gradient(circle at top center, #0a1120 0%, #000 80%);
    
    overflow-x: hidden;
}

.login-card {
    width: 100%;
    max-width: 400px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    margin-top: 70px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.6s ease-out;
    margin-bottom: 10px;
    margin-top: 10px;
}

.logo-area {
    text-align: center;
    margin-bottom: 32px;
}

/* Um detalhe visual moderno (círculo gradiente) */
.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), #5856D6);
    border-radius: 12px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(0, 122, 255, 0.3);
}

h2 {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 24px;
}

/* Mensagem de Erro Estilizada */
.error-alert {
    background: rgba(255, 69, 58, 0.1);
    color: #ff453a;
    padding: 12px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 20px;
    text-align: center;
    border: 1px solid rgba(255, 69, 58, 0.2);
}

/* Formulário */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
    margin-left: 4px;
}

input {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
    color: white;
    font-size: 15px;
    transition: all 0.2s ease;
}

input:focus {
    outline: none;
    border-color: var(--primary);
    background: #161616;
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.15);
}

button {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 10px;
}

button:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(0, 122, 255, 0.3);
}

button:active {
    transform: translateY(0);
}

/* Link fake para o mercado digital */
.forgot-password {
    display: block;
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.forgot-password:hover {
    color: var(--primary);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile Adjustments */
@media (max-width: 480px) {
    .login-card {
        padding: 30px 20px;
        border: none;
        background: transparent;
        box-shadow: none;
    }
}

/* === MEDIA QUERY DESKTOP (TELAS >= 1024px) === */
@media (min-width: 1024px) {

    body {
        padding: 60px;
        justify-content: center;
        align-items: center;
    }

    .login-card {
        max-width: 500px;  /* card maior no desktop */
        padding: 60px 50px;
        border-radius: 24px;
        box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6);
    }

    .logo-icon {
        width: 60px;
        height: 60px;
        border-radius: 16px;
    }

    h2 {
        font-size: 28px;
    }

    .subtitle {
        font-size: 16px;
        margin-bottom: 32px;
    }

    .error-alert {
        font-size: 14px;
        padding: 14px;
    }

    label {
        font-size: 14px;
    }

    input {
        padding: 16px 18px;
        font-size: 16px;
    }

    button {
        padding: 16px;
        font-size: 17px;
    }

    .forgot-password {
        font-size: 14px;
        margin-top: 24px;
    }
}
