/* ============================================
   LOGIN PAGE
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #0f1117;
    --bg-card: #1e2333;
    --bg-input: #0f1117;
    --bg-hover: rgba(255, 255, 255, 0.06);

    --border: rgba(255, 255, 255, 0.08);
    --border-md: rgba(255, 255, 255, 0.12);

    --text-primary: #ffffff;
    --text-muted: #94a3b8;
    --text-soft: #64748b;

    --accent: #f97316;
    --danger: #ef4444;
    --green: #22c55e;

    --radius-md: 12px;
    --radius-lg: 20px;
}

/* ============================================
   BODY
   ============================================ */

body {
    font-family: 'Inter', system-ui, sans-serif;

    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 100vh;

    color: var(--text-primary);

    background: linear-gradient(
            135deg,
            #0f1117 0%,
            #1a1f2e 100%
    );

    -webkit-font-smoothing: antialiased;
}

/* ============================================
   CONTAINER
   ============================================ */

.login-container {
    width: 100%;
    max-width: 400px;

    padding: 1.5rem;
}

.login-card {
    padding: 2rem;

    background: var(--bg-card);

    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* ============================================
   LOGO
   ============================================ */

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

.logo-icon {
    width: 50px;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 0.8rem;

    background: linear-gradient(
            135deg,
            var(--accent),
            var(--danger)
    );

    border-radius: 1rem;
}

.logo-icon i {
    color: white;
    font-size: 24px;
}

.logo h1 {
    color: var(--text-primary);

    font-size: 1.4rem;
    font-weight: 650;

    letter-spacing: -0.02em;
}

.logo p {
    margin-top: 0.25rem;

    color: var(--text-muted);

    font-size: 0.75rem;
}

/* ============================================
   FORMULÁRIO
   ============================================ */

.form-group {
    margin-bottom: 1.15rem;
}

label {
    display: block;

    margin-bottom: 0.4rem;

    color: var(--text-muted);

    font-size: 0.7rem;
    font-weight: 600;

    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.input-group {
    position: relative;
}

.input-group .input-icon {
    position: absolute;

    left: 1rem;
    top: 50%;

    transform: translateY(-50%);

    color: var(--text-soft);
    font-size: 0.9rem;

    pointer-events: none;
}

input {
    width: 100%;
    min-height: 42px;

    padding: 0.75rem 1rem 0.75rem 2.5rem;

    background: var(--bg-input);

    border: 1px solid var(--border-md);
    border-radius: var(--radius-md);

    color: var(--text-primary);

    font-size: 0.85rem;

    outline: none;

    transition:
            border-color 0.18s ease,
            box-shadow 0.18s ease;
}

input::placeholder {
    color: var(--text-soft);
}

input:focus {
    border-color: var(--accent);

    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
}

/* ============================================
   SENHA
   ============================================ */

.password-group input {
    padding-right: 2.8rem;
}

.password-toggle {
    position: absolute;

    top: 50%;
    right: 0.85rem;

    width: 28px;
    height: 28px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    transform: translateY(-50%);

    background: transparent;

    border: none;
    border-radius: 6px;

    color: var(--text-soft);

    cursor: pointer;
}

.password-toggle:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.password-toggle i {
    font-size: 0.85rem;
    pointer-events: none;
}

/* ============================================
   BOTÃO LOGIN
   ============================================ */

.btn-login {
    width: 100%;
    min-height: 42px;

    margin-top: 0.5rem;
    padding: 0.75rem;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    background: linear-gradient(
            135deg,
            var(--accent),
            var(--danger)
    );

    border: none;
    border-radius: var(--radius-md);

    color: white;

    font-size: 0.85rem;
    font-weight: 600;

    cursor: pointer;
}

.btn-login:hover {
    transform: translateY(-1px);

    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.3);
}

/* ============================================
   ALERTAS
   ============================================ */

.alert {
    display: flex;
    align-items: center;
    gap: 0.5rem;

    margin-bottom: 1rem;
    padding: 0.7rem 1rem;

    border-radius: var(--radius-md);

    font-size: 0.75rem;

    transition: opacity 0.3s ease;
}

.alert-error {
    color: #ef4444;

    background: rgba(220, 38, 38, 0.12);

    border: 1px solid rgba(220, 38, 38, 0.25);
}

.alert-success {
    color: var(--green);

    background: rgba(34, 197, 94, 0.08);

    border: 1px solid rgba(34, 197, 94, 0.2);
}

/* ============================================
   FOOTER
   ============================================ */

.separator {
    display: flex;
    align-items: center;

    margin: 1.5rem 0 1rem;

    text-align: center;

    color: #475569;
    font-size: 0.65rem;
}

.separator::before,
.separator::after {
    content: '';

    flex: 1;

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.separator span {
    margin: 0 0.7rem;
}

.footer {
    text-align: center;

    color: #475569;
    font-size: 0.65rem;
}

/* ============================================
   RESPONSIVO
   ============================================ */

@media (max-width: 480px) {

    .login-container {
        padding: 1rem;
    }

    .login-card {
        padding: 1.5rem;
    }

    .logo h1 {
        font-size: 1.2rem;
    }

    .logo-icon {
        width: 45px;
        height: 45px;
    }

    .logo-icon i {
        font-size: 20px;
    }
}