/* ============================================================
   RESET E BASE
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #e0f7f1 0%, #ffffff 50%, #fff8e7 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #1f2937;
}

/* ============================================================
   CONTAINER E CARD
   ============================================================ */
.container {
    width: 100%;
    max-width: 420px;
}

.card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    text-align: center;
}

.hidden {
    display: none !important;
}

/* ============================================================
   ÍCONES
   ============================================================ */
.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e0f7f1 0%, #d5f5e8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: #4CC9A6;
}

.icon-circle.success {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #16a34a;
}

.icon-circle.error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #dc2626;
}

/* ============================================================
   TIPOGRAFIA
   ============================================================ */
h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #111827;
}

p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
}

.text-muted {
    font-size: 14px;
    color: #9ca3af;
}

/* ============================================================
   BOTÕES - Paleta PetApp (Turquesa)
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #4CC9A6 0%, #3DB892 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(76, 201, 166, 0.3);
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #3DB892 0%, #2DA67E 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76, 201, 166, 0.4);
}

.btn-primary:disabled {
    background: #a7e4d0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

.btn-secondary:hover {
    background: #e5e7eb;
}

.btn-text {
    background: transparent;
    color: #6b7280;
}

.btn-text:hover {
    color: #374151;
}

/* ============================================================
   SPINNER
   ============================================================ */
.spinner,
.btn-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #e5e7eb;
    border-top-color: #4CC9A6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.btn-spinner {
    width: 18px;
    height: 18px;
    border-width: 2px;
    border-color: rgba(255,255,255,0.3);
    border-top-color: white;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================================
   FORMULÁRIOS
   ============================================================ */
.auth-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    background: #f3f4f6;
    padding: 4px;
    border-radius: 8px;
}

.tab {
    flex: 1;
    padding: 10px 16px;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    color: #6b7280;
}

.tab.active {
    background: white;
    color: #4CC9A6;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.auth-form {
    text-align: left;
}

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

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

.form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #4CC9A6;
    box-shadow: 0 0 0 3px rgba(76, 201, 166, 0.1);
}

.password-input {
    position: relative;
}

.password-input input {
    padding-right: 44px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
}

.toggle-password:hover {
    color: #6b7280;
}

/* ============================================================
   MENSAGENS DE ERRO
   ============================================================ */
.error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
    text-align: left;
}

/* ============================================================
   USER BADGE
   ============================================================ */
.user-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #16a34a;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 24px;
}

/* ============================================================
   STORE LINKS
   ============================================================ */
.store-links {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.store-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 12px;
}

.store-btn img {
    height: 40px;
    width: auto;
}

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 480px) {
    .card {
        padding: 24px;
    }
    
    h1 {
        font-size: 20px;
    }
    
    .store-buttons {
        flex-direction: column;
        align-items: center;
    }
}

