:root {
    --primary: #2ecc71;
    --dark: #1a1a1a;
    --light: #f4f4f4;
    --gray: #cccccc;
}

body {
    font-family: "Inter", sans-serif;
    background: linear-gradient(135deg, #e8fff0, #c8ffdd);
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* ===== CONTAINER ===== */
.auth-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

/* ===== CARD ===== */
.auth-card {
    background: white;
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    position: relative;
}

.btn-voltar {
    position: absolute;
    top: 15px;
    left: 15px;
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.3s;
}

.btn-voltar:hover {
    color: var(--dark);
}

.auth-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.auth-logo svg {
    display: block;
    margin: 0 auto;
}

.logo-login {
    width: 120px; 
    height: auto;
}

.auth-title {
    text-align: center;
    font-size: 2rem;
    color: var(--primary);
    margin: 0 0 20px;
}

/* ===== SWITCH BUTTONS ===== */
.auth-switch {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    gap: 10px;
}

.auth-switch button {
    padding: 10px 20px;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.3s;
}

.auth-switch button.active {
    background: var(--primary);
    color: white;
}

/* ===== FORMS ===== */
.form {
    display: none;
    flex-direction: column;
    gap: 15px;
}

.form.active {
    display: flex;
}

/* ===== INPUTS ===== */
.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-size: 0.9rem;
    color: var(--dark);
    margin-bottom: 5px;
}

.input-group input {
    padding: 12px;
    border: 2px solid var(--gray);
    border-radius: 10px;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}

.input-group input:focus {
    border-color: var(--primary);
}

.input-group input.valid {
    border-color: #27ae60;
    background-color: rgba(39, 174, 96, 0.05);
}

.input-group input.invalid {
    border-color: #e74c3c;
    background-color: rgba(231, 76, 60, 0.05);
}

.validation-message {
    font-size: 0.75rem;
    margin-top: 5px;
    display: none;
    font-weight: 500;
}

.validation-message.valid {
    color: #27ae60;
    display: block;
}

.validation-message.invalid {
    color: #e74c3c;
    display: block;
}

.password-strength {
    margin-top: 8px;
    font-size: 0.75rem;
}

.strength-bar {
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 5px;
}

.strength-fill {
    height: 100%;
    width: 0%;
    border-radius: 2px;
    transition: width 0.3s, background-color 0.3s;
}

.strength-fill.weak {
    width: 33%;
    background-color: #e74c3c;
}

.strength-fill.medium {
    width: 66%;
    background-color: #f39c12;
}

.strength-fill.strong {
    width: 100%;
    background-color: #27ae60;
}

/* ===== BUTTON ===== */
.auth-btn {
    background: var(--primary);
    color: white;
    padding: 12px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: 0.3s;
    margin-top: 10px;
}

.auth-btn:hover {
    opacity: 0.9;
}

/* ===== AUTH LINKS ===== */
.auth-links {
    text-align: center;
    margin-top: 20px;
}

.auth-links p {
    margin: 10px 0;
    font-size: 0.9rem;
    color: var(--dark);
}

.auth-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.auth-links a:hover {
    text-decoration: underline;
}

.forgot-password {
    display: block;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 450px) {
    .auth-card {
        padding: 25px 20px;
    }
}
