/* CSS para páginas de autenticação - Design minimalista */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: column;
    padding: 30px;
}

.auth-container {
    padding: 48px 40px;
    width: 100%;
    max-width: 420px;
    margin: 20px;
}

.logo-container {
    text-align: center;
    margin-bottom: 40px;
}

.logo {
    max-width: 180px;
    height: auto;
    margin-bottom: 8px;
}

.auth-title {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 32px;
    letter-spacing: -0.02em;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    background-color: #fff;
    transition: all 0.2s ease;
    outline: none;
}

.form-input:focus {
    border-color: #1f2937;
    box-shadow: 0 0 0 3px rgba(31, 41, 55, 0.1);
}

.form-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.phone-input-container {
    display: flex;
    gap: 8px;
}

.country-code {
    flex: 0 0 80px;
    background-color: #f9fafb;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 8px;
    font-size: 14px;
    text-align: center;
    color: #6b7280;
}

.phone-input {
    flex: 1;
}

.btn-primary {
    width: 100%;
    background-color: #7654f1;
    color: white;
    border: none;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.btn-primary:hover {
    background-color: #472f9f;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary:active {
    transform: translateY(0);
}

.auth-links {
    text-align: center;
    margin-top: 24px;
}

.auth-link {
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.auth-link:hover {
    color: #1a1a1a;
    text-decoration: underline;
}

.auth-link-primary {
    color: #1a1a1a;
    font-weight: 600;
}

.divider {
    margin: 20px 0 0;
    text-align: center;
    color: #9ca3af;
    font-size: 14px;
}

.criar-conta {
    text-align: center;
    margin-top: 5px;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 24px 0;
}

.checkbox {
    margin-top: 2px;
    width: 18px;
    height: 18px;
    accent-color: #7654f1;
}

.checkbox-label {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
}

.checkbox-label a {
    color: #7654f1;
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.captcha-container {
    margin: 20px 0;
    display: flex;
    justify-content: center;
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

.alert-danger {
    background-color: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.alert-success {
    background-color: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.alert-warning {
    background-color: #fffbeb;
    color: #d97706;
    border: 1px solid #fed7aa;
}

/* Responsividade */
@media (max-width: 480px) {
    .auth-container {
        padding: 32px 24px;
        margin: 16px;
    }
    
    .auth-title {
        font-size: 22px;
    }
    
    .form-input {
        font-size: 16px; /* Evita zoom no iOS */
    }
}

/* Animações suaves */
.auth-container {
    animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estados de loading */
.btn-primary:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

.btn-primary.loading {
    position: relative;
    color: transparent;
}

.btn-primary.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

