@font-face {
  font-family: 'Vegan Style';
  src: url('font/vegan_style_font.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
/* Soft Minimalism Login Form - Complete & Self-Contained */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', system-ui, sans-serif;
  background: linear-gradient(135deg, #faf9f6 0%, #f5f3f0 50%, #f0ede8 100%);
  min-height: 100vh;
  min-height: 100dvh;
  min-height: calc(100vh + env(safe-area-inset-top) + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  line-height: 1.5;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}
.soft-background { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.floating-shapes { position: absolute; width: 100%; height: 100%; }
.soft-blob { position: absolute; border-radius: 50%; opacity: 0.25; filter: blur(12px); animation: blobFloat 16s infinite linear alternate; }
.blob-1 { width: 420px; height: 420px; background: #f0ceaa; left: -120px; top: -80px; animation-delay: 0s; }
.blob-2 { width: 320px; height: 320px; background: #e6bfae; right: -100px; top: 60px; animation-delay: 2s; }
.blob-3 { width: 260px; height: 260px; background: #bfaea6; left: 60px; bottom: -80px; animation-delay: 4s; }
.blob-4 { width: 180px; height: 180px; background: #f0e6d2; right: 40px; bottom: -60px; animation-delay: 6s; }
@keyframes blobFloat { 0% { transform: translateY(0) scale(1); } 100% { transform: translateY(40px) scale(1.08); } }
.login-container { width: 100%; max-width: 380px; position: relative; z-index: 1; }
.soft-card { background: rgba(255,255,255,0.95); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-radius: 16px; padding: 48px 40px; box-shadow: 0 8px 32px rgba(93,64,55,0.08), inset 0 1px 0 rgba(255,255,255,0.8); position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,0.5); }
.comfort-header { text-align: center; margin-bottom: 32px; }
.gentle-logo { display: none; }
.logo-circle { display: none; }
.comfort-icon svg { display: block; }
.comfort-title { font-family: 'Vegan Style', cursive !important; color: #5D4037; font-size: 2rem; margin-bottom: 8px; letter-spacing: -0.02em; }
.comfort-title-link { color: inherit; text-decoration: none; cursor: pointer; }
.comfort-title-link:hover { opacity: 0.8; }
.gentle-subtitle { color: rgba(139,102,85,0.7); font-size: 15px; font-weight: 400; margin-bottom: 0; }
.comfort-form { margin-top: 24px; }
.soft-field { position: relative; margin-bottom: 20px; }
.field-container { position: relative; background: rgba(255,255,255,0.7); border: 1.5px solid rgba(160,124,113,0.3); border-radius: 12px; overflow: visible; transition: all 0.3s ease; display: flex; align-items: center; }
.field-container:focus-within { border-color: #a07c71; box-shadow: 0 0 0 3px rgba(160,124,113,0.1); }
.field-container input { width: 100%; border: none; background: transparent; padding: 14px 16px; font-size: 15px; color: #5D4037; font-family: inherit; outline: none; transition: background 0.2s; }
.field-container label { position: absolute; left: 16px; top: 14px; color: #a07c71; font-size: 14px; pointer-events: none; transition: 0.2s cubic-bezier(.4,0,.2,1); background: transparent; }
.field-container input:focus + label, .field-container input:not(:placeholder-shown) + label, .field-container input.filled + label { top: -10px; left: 12px; font-size: 12px; color: #5D4037; background: rgba(255,255,255,0.95); padding: 0 4px; border-radius: 6px; }
/* Autofill styling para navegadores que preenchem automaticamente */
.field-container input:-webkit-autofill,
.field-container input:-webkit-autofill:hover,
.field-container input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px rgba(255,255,255,0.7) inset !important;
    -webkit-text-fill-color: #5D4037 !important;
}
.field-container input:-webkit-autofill + label {
    top: -10px;
    left: 12px;
    font-size: 12px;
    color: #5D4037;
    background: rgba(255,255,255,0.95);
    padding: 0 4px;
    border-radius: 6px;
}
.field-accent { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, #a07c71, #c6a69b); opacity: 0.5; }
.gentle-error { color: #d97706; font-size: 13px; margin-top: 6px; min-height: 18px; display: block; opacity: 0; transition: opacity 0.2s; }
.gentle-error.show { opacity: 1; }
.comfort-options { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; margin-bottom: 18px; }
.comfort-options-top { display: flex; align-items: center; justify-content: center; width: 100%; }
.gentle-checkbox { display: flex; align-items: center; cursor: pointer; user-select: none; }
.gentle-checkbox input { display: none; }
.checkbox-soft { width: 20px; height: 20px; border-radius: 6px; background: #f0e6d2; margin-right: 8px; display: flex; align-items: center; justify-content: center; position: relative; transition: background 0.2s; }
.gentle-checkbox input:checked + .checkbox-soft { background: #a07c71; }
.check-circle { width: 12px; height: 12px; border-radius: 50%; background: #fff; opacity: 0; transition: opacity 0.2s; }
.gentle-checkbox input:checked + .checkbox-soft .check-circle { opacity: 1; }
.checkbox-text { color: #8b6655; font-size: 14px; }
.comfort-link { color: #a07c71; font-size: 14px; text-decoration: none; transition: color 0.2s; text-align: center; display: block; width: 100%; }
.comfort-link:hover { color: #5D4037; }
.comfort-options.hidden { display: none !important; }
.forgot-password { text-align: right; margin-top: 8px; }
.comfort-button { width: 100%; padding: 14px; background: linear-gradient(135deg, #a07c71, #c6a69b); color: white; border: none; border-radius: 12px; font-size: 15px; font-weight: 600; font-family: inherit; cursor: pointer; position: relative; overflow: hidden; margin-top: 8px; transition: all 0.2s; box-shadow: 0 4px 16px rgba(160,124,113,0.2); }
.comfort-button:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(160,124,113,0.3); }
.comfort-button:active { transform: translateY(0); }
.comfort-button.loading { opacity: 0.7; pointer-events: none; }
.button-background { position: absolute; left: 0; top: 0; right: 0; bottom: 0; background: linear-gradient(135deg, #a07c71, #c6a69b); opacity: 0.2; z-index: 0; }
.button-text { position: relative; z-index: 1; }
.button-loader { display: none; position: absolute; left: 16px; top: 50%; transform: translateY(-50%); z-index: 2; }
.comfort-button.loading .button-loader { display: inline-block; }
.gentle-spinner { width: 20px; height: 20px; border: 2px solid #a07c71; border-top-color: #c6a69b; border-radius: 50%; animation: spin 0.8s linear infinite; }
.gentle-spinner.inline { width: 14px; height: 14px; border-width: 2px; display: inline-block; vertical-align: middle; margin-right: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }
.gentle-toast { position: fixed; right: 24px; bottom: 24px; background: #ffffff; border: 1px solid rgba(160,124,113,0.25); box-shadow: 0 10px 25px rgba(93,64,55,0.15); border-radius: 14px; padding: 14px 18px; display: flex; align-items: center; gap: 12px; color: #5D4037; font-weight: 600; opacity: 0; transform: translateY(8px); transition: all 0.3s ease; z-index: 9999; }
.gentle-toast.show { opacity: 1; transform: translateY(0); }
.gentle-toast-icon { width: 28px; height: 28px; border-radius: 50%; background: #22c55e; color: #ffffff; display: flex; align-items: center; justify-content: center; font-size: 16px; box-shadow: 0 6px 12px rgba(34,197,94,0.3); }
.gentle-toast-text { font-size: 14px; }
.button-glow { position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: linear-gradient(90deg, #a07c71, #c6a69b); opacity: 0.15; border-radius: 0 0 12px 12px; z-index: 0; }
.gentle-divider { display: flex; align-items: center; gap: 12px; margin: 32px 0 24px 0; }
.divider-line { flex: 1; height: 1px; background: #f0e6d2; opacity: 0.7; }
.divider-text { color: #bfaea6; font-size: 13px; font-weight: 500; }
.comfort-social { display: flex; gap: 16px; justify-content: center; margin-bottom: 24px; }
.social-soft { background: #f0e6d2; border: none; border-radius: 10px; padding: 12px 20px; color: #8b6655; font-size: 15px; font-weight: 500; display: flex; align-items: center; gap: 10px; cursor: pointer; transition: background 0.2s, color 0.2s; position: relative; overflow: hidden; }
.social-soft:hover { background: #f0ceaa; color: #a97c50; }
.social-background { position: absolute; left: 0; top: 0; right: 0; bottom: 0; background: linear-gradient(90deg, #f0ceaa, #e6bfae); opacity: 0.15; z-index: 0; }
.social-glow { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: linear-gradient(90deg, #f0ceaa, #e6bfae); opacity: 0.12; border-radius: 0 0 10px 10px; z-index: 0; }
.gentle-success { display: none; flex-direction: column; align-items: center; justify-content: center; margin-top: 32px; text-align: center; }
.gentle-success.show { display: flex; }
.success-bloom { margin-bottom: 18px; position: relative; }
.bloom-rings { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 0; }
.bloom-ring { width: 60px; height: 60px; border-radius: 50%; border: 2px solid #f0ceaa; opacity: 0.3; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(0.8); animation: bloom 1.5s infinite alternate; }
.ring-2 { width: 80px; height: 80px; opacity: 0.18; animation-delay: 0.5s; }
.ring-3 { width: 100px; height: 100px; opacity: 0.12; animation-delay: 1s; }
@keyframes bloom { 0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.3; } 100% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.1; } }
.success-icon { width: 48px; height: 48px; border-radius: 50%; background: #f0ceaa; display: flex; align-items: center; justify-content: center; z-index: 1; margin: 0 auto; box-shadow: 0 2px 8px rgba(240,206,170,0.15); }
.success-title { color: #8b6655; font-size: 1.5rem; font-weight: 600; margin-bottom: 6px; }
.success-desc { color: #bfaea6; font-size: 15px; font-weight: 400; }
@media (max-width: 600px) {
  body {
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    min-height: 100vh;
    min-height: 100dvh;
    min-height: calc(100vh + env(safe-area-inset-top) + env(safe-area-inset-bottom));
    font-size: 15px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .login-container {
    max-width: 100%;
    min-width: 0;
    width: 100%;
    margin: 0;
    padding: 0 16px;
  }
  .soft-card {
    padding: 18px 5% calc(24px + env(safe-area-inset-bottom)) 5%;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    min-width: 0;
    max-width: 500px;
    width: 100%;
    box-sizing: border-box;
  }
  .comfort-title {
    font-size: 2.4rem;
  }
  .gentle-subtitle {
    font-size: 13px;
  }
  .field-container input {
    font-size: 15px;
    padding: 14px 10px 14px 10px;
  }
  .field-container label {
    font-size: 13px;
    left: 10px;
    top: 14px;
  }
  .field-container input:focus + label, .field-container input:not(:placeholder-shown) + label {
    font-size: 11px;
    left: 8px;
    top: 2px;
  }
  .comfort-button {
    font-size: 15px;
    padding: 13px;
    border-radius: 12px;
  }
  .footer-text {
    font-size: 11px !important;
    margin-top: 18px !important;
  }
  .gentle-success {
    margin-top: 18px;
  }
}

/* Modal de redefinição de senha */
.reset-modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.35); display: flex; align-items: center; justify-content: center; z-index: 9999; }
.reset-modal { width: 100%; max-width: 420px; background: rgba(255,255,255,0.98); border-radius: 14px; padding: 24px; box-shadow: 0 10px 30px rgba(0,0,0,0.18); }
.reset-modal h3 { margin-bottom: 12px; color: #5D4037; font-size: 1.1rem; }
.reset-modal .form-group { margin-bottom: 14px; }
.reset-modal label { display: block; margin-bottom: 6px; font-size: 13px; color: #8b6655; }
.reset-modal input { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(160,124,113,0.3); font-size: 14px; }
.reset-modal .reset-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 12px; }
.reset-modal .btn-reset-cancel { background: #f3f4f6; color: #6b7280; border: none; padding: 10px 14px; border-radius: 8px; cursor: pointer; }
.reset-modal .btn-reset-primary { background: linear-gradient(135deg, #a07c71, #c6a69b); color: white; border: none; padding: 10px 14px; border-radius: 8px; cursor: pointer; }
.reset-modal .reset-message { font-size: 13px; color: #6b7280; margin-top: 8px; }

/* OTP Input Styling */
.otp-container {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 16px 0;
}

.otp-input {
    width: 45px;
    height: 50px;
    border: 2px solid #cbd5e1;
    border-radius: 8px;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    color: #5D4037;
    transition: all 0.3s ease;
    background: #f8fafc;
    font-family: inherit;
}

.otp-input:focus {
    outline: none;
    border-color: #a07c71;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(160, 124, 113, 0.1);
}

.otp-input:disabled {
    background: #f1f5f9;
    color: #cbd5e1;
    cursor: not-allowed;
}

.otp-input.filled {
    border-color: #a07c71;
    box-shadow: 0 0 0 2px rgba(160, 124, 113, 0.15);
}

