.spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: spin 1s linear infinite;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

* {
    box-sizing: border-box;
}

:root {
    --verde: #22c55e;
    --fundo: #f9fafb;
    --texto: #111827;
    --subtexto: #6b7280;
    --card-bg: #ffffff;
    --borda: #e5e7eb;
}

body.dark {
    --fundo: #111827;
    --texto: #f9fafb;
    --subtexto: #9ca3af;
    --card-bg: #1f2937;
    --borda: #374151;
}

body {
    font-family: "Inter", sans-serif;
    margin: 0;
    background-color: var(--fundo);
    color: var(--texto);
    transition: background 0.3s, color 0.3s;
}

/* Header */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 3rem;
    background: var(--card-bg);
    border-bottom: 1px solid var(--borda);
    transition: background 0.3s;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 1.1rem;
}

    .logo i {
        color: var(--verde);
        font-size: 1.2rem;
        margin-right: 8px;
    }

.logo-badge {
    background: var(--green);
    color: #fff;
}

.right-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--texto);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s;
}

.login-btn {
    background: var(--verde);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
}

/*.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #22c55e, #06b6d4);
/*}*/

/* Login card */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 80px);
    padding: 1rem;
}

.login-card {
    background: var(--card-bg);
    border: 1px solid var(--borda);
    border-radius: 16px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    padding: 2rem;
    width: 100%;
    max-width: 400px;
    transition: background 0.3s;
}

    .login-card h2 {
        text-align: center;
        font-size: 1.6rem;
        margin-bottom: 0.5rem;
    }

    .login-card p {
        text-align: center;
        color: var(--subtexto);
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }

.form-group {
    margin-bottom: 1rem;
    position: relative;
}

    .form-group i {
        position: absolute;
        top: 50%;
        left: 12px;
        transform: translateY(-50%);
        color: var(--subtexto);
    }

.form-control {
    display: block;
    width: 100%;
    padding: 0.75rem 0.75rem 0.75rem 2.5rem;
    border: 1px solid var(--borda);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--texto);
    font-size: 0.95rem;
    transition: border-color 0.2s, background 0.3s;
}

    .form-control:focus {
        outline: none;
        border-color: var(--verde);
        box-shadow: 0 0 0 2px rgba(34,197,94,0.2);
    }

.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

    .options label {
        display: flex;
        align-items: center;
        gap: 0.3rem;
        color: var(--subtexto);
    }

    .options a {
        color: var(--verde);
        text-decoration: none;
    }

        .options a:hover {
            text-decoration: underline;
        }

.login-card button {
    width: 100%;
    background: var(--verde);
    color: white;
    border: none;
    padding: 0.75rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

    .login-card button:hover {
        background: #16a34a;
    }

.register-link {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--subtexto);
}

    .register-link a {
        color: var(--verde);
        text-decoration: none;
        font-weight: 500;
    }

        .register-link a:hover {
            text-decoration: underline;
        }

@media (max-width: 480px) {
    header {
        padding: 1rem;
    }

    .login-card {
        padding: 1.5rem;
    }
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 1rem;
    border-top: 1px solid var(--borda);
    font-size: 0.9rem;
    color: var(--subtexto);
}

    footer a {
        color: var(--verde);
        text-decoration: none;
        font-weight: 500;
    }



body {
    font-family: 'Inter', sans-serif;
}

.animate-fadeIn {
    animation: fadeIn .8s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.spinner {
    border: 3px solid #ffffff40;
    border-top: 3px solid white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}