/* LOGIN - DESIGN SYSTEM ENIGMA */

body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

/* CARD */
.login-card {
    background: var(--white);
    padding: 35px;
    border-radius: var(--radius);
    width: 100%;
    max-width: 380px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    text-align: center;
}

/* TITULO */
.login-card h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
}

.login-card h1 span {
    color: var(--secondary);
}

.subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 25px;
}

/* ALERTAS */
.alert {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert.error {
    background: #fee2e2;
    color: var(--danger);
}

.alert.success {
    background: #d1fae5;
    color: var(--success);
}

/* INPUT */
.input-group {
    text-align: left;
    margin-bottom: 15px;
}

.input-group label {
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 5px;
    display: block;
}

.field {
    position: relative;
}

.field input {
    width: 100%;
    padding: 12px 40px;
    border-radius: 8px;
    border: 1px solid var(--border);
    font-size: 0.9rem;
    background: #f9fafb;
}

.field input:focus {
    outline: none;
    border-color: var(--primary);
}

/* ÍCONES */
.main-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-muted);
}

/* BOTÃO LOGIN */
.btn-login {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: var(--primary);
    color: var(--white);
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s;
}

.btn-login:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

/* DIVIDER */
.divider {
    margin: 20px 0;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* BOTÃO GOOGLE */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border-radius: 8px;
    background: var(--white);
    border: 1px solid var(--border);
    font-weight: 600;
    text-decoration: none;
    color: var(--text-dark);
    transition: 0.3s;
}

.btn-google:hover {
    background: #f3f4f6;
}

/* RESPONSIVO */
@media (max-width: 480px) {
    .login-card {
        padding: 25px;
    }
}

.cadastro-link {
    margin-top: 18px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

.cadastro-link a {
    color: #2563eb;
    font-weight: 800;
    text-decoration: none;
}

.cadastro-link a:hover {
    text-decoration: underline;
}