/* ===== PINTEREST STYLE LOGIN ===== */

body.login-page {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  margin: 0;
  background: #ffffff;
  color: #333333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== MAIN CONTAINER ===== */
.login-main {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 80px);
  padding: 40px 20px;
  position: relative;
}

/* ===== PINTEREST MODAL ===== */
.pinterest-modal {
  background-color: rgb(255, 255, 255);
  border-radius: 32px;
  position: relative;
  text-align: center;
  margin: auto;
  box-shadow: rgba(0, 0, 0, 0.45) 0px 2px 10px;
  width: 484px !important;
  max-width: 100%;
  overflow: visible;
  border: 1px solid #eee !important;
  box-sizing: border-box !important;
}

/* Modais dentro do overlay não devem aparecer por padrão */
.modal-overlay .pinterest-modal {
  display: none !important;
  position: relative !important;
  margin: 0 auto !important;
}

.modal-content {
  padding: 8px 10px 12px;
  position: relative;
}

/* ===== CLOSE BUTTON ===== */
.close-button-wrapper {
  position: absolute;
  top: 8px;
  right: 8px;
  height: 40px;
  width: 40px;
  z-index: 10;
}

.close-button {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.close-button:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.close-icon {
  color: #333;
  width: 16px;
  height: 16px;
}

/* ===== LOGO ===== */
.logo-wrapper {
  margin: 0px auto 2px;
  height: 40px;
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== TITLE ===== */
.title-wrapper {
  margin: 0px auto 8px;
  width: 300px;
  max-width: 90%;
}

.modal-title {
  color: rgb(51, 51, 51);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -1px;
  padding: 0px 16px;
  word-break: keep-all;
  overflow-wrap: break-word;
  margin: 0;
  line-height: 1.1;
}

/* ===== MENSAGENS ===== */
.error-message {
  background: #fee;
  color: #c33;
  padding: 12px 16px;
  border-radius: 8px;
  margin: 0 auto 16px;
  max-width: 268px;
  font-size: 14px;
  display: none;
}

.success-message {
  background: #efe;
  color: #3c3;
  padding: 12px 16px;
  border-radius: 8px;
  margin: 0 auto 16px;
  max-width: 268px;
  font-size: 14px;
  display: none;
}

/* ===== FORM WRAPPER ===== */
.form-wrapper {
  margin: 0px auto;
  width: 268px;
  max-width: 90%;
}

/* ===== FORM FIELDS ===== */
.form-field {
  margin-bottom: 8px;
  text-align: left;
}

.field-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.input-wrapper {
  position: relative;
}

.form-input {
  width: 100%;
  padding: 8px 14px;
  border: 1px solid #ddd;
  border-radius: 16px;
  font-size: 16px;
  background: #fff;
  color: #333;
  transition: all 0.2s;
  box-sizing: border-box;
}

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

.form-input:focus {
  outline: none;
  border-color: #ff6b35;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-input::placeholder {
  color: #999;
}

/* ===== PASSWORD WRAPPER ===== */
.password-wrapper {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
  width: 24px;
  height: 24px;
  z-index: 10;
  margin: 0;
  box-shadow: none;
  margin-top: -1px;
}

.password-toggle:hover {
  background-color: rgba(0, 0, 0, 0.05);
  box-shadow: 0 -10px 8px rgba(0, 0, 0, 0.15);
}

.eye-icon {
  width: 20px;
  height: 20px;
  color: #666;
  fill: currentColor;
  stroke: currentColor;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

/* ===== FORGOT PASSWORD ===== */
.forgot-password-wrapper {
  text-align: left;
  margin-bottom: 6px;
}

.forgot-password-link {
  color: #333;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.forgot-password-link:hover {
  color: #ff6b35;
}

/* ===== SUBMIT BUTTON ===== */
.submit-wrapper {
  margin-bottom: 6px;
}

.submit-button {
  width: 100%;
  padding: 10px 24px;
  background: #ff6b35;
  color: white;
  border: none;
  border-radius: 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.submit-button:hover {
  background: #e55a2b;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.submit-button:active {
  transform: translateY(0);
}

.button-text {
  display: block;
}

/* ===== DIVIDER ===== */
.divider-text {
  margin: 2px 0;
  overflow: hidden;
  text-align: center;
  font-size: 14px;
  color: rgb(51, 51, 51);
  font-weight: bold;
}

/* ===== SOCIAL LOGIN OPTIONS ===== */
.social-login-options {
  margin-top: 2px;
}

.social-button-wrapper {
  margin-bottom: 6px;
  height: 44px;
}

.social-button {
  width: 100%;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 16px;
  border: 1px solid #ddd;
  border-radius: 24px;
  background: white;
  color: #333;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.social-button:hover {
  background: #f5f5f5;
  border-color: #bbb;
}

.google-button {
  border-color: #dadce0;
}

.discord-button {
  background: #5865F2;
  color: white;
  border-color: #5865F2;
}

.discord-button:hover {
  background: #4752C4;
  border-color: #4752C4;
}

/* ===== QR CODE BUTTON ===== */
.qr-code-button-wrapper {
  margin-top: 2px;
}

.qr-code-button {
  width: 100%;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid #ddd;
  border-radius: 24px;
  background: white;
  color: #333;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.qr-code-button:hover {
  background: #f5f5f5;
  border-color: #bbb;
}

.qr-icon {
  width: 18px;
  height: 18px;
  color: #666;
}

/* ===== QR CODE MODAL ===== */
.qr-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.qr-modal-overlay.show {
  display: flex;
}

.qr-modal {
  background: #ffffff;
  border-radius: 16px;
  width: 488px;
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  position: relative;
  animation: slideUp 0.3s ease-out;
}

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

.qr-modal-header {
  position: relative;
  padding: 20px 24px;
  border-bottom: 1px solid #e9e9e9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.qr-modal-back,
.qr-modal-close {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
  width: 40px;
  height: 40px;
}

.qr-modal-back:hover,
.qr-modal-close:hover {
  background: #f5f5f5;
  color: #333;
}

.qr-modal-content {
  padding: 40px 32px;
  text-align: center;
}

.qr-modal-logo {
  margin-bottom: 34px;
}

.qr-logo-img {
  width: 64px;
  height: 70px;
  object-fit: contain;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.qr-modal-title {
  color: #333;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -1.2px;
  padding: 0px 16px;
  word-break: keep-all;
  overflow-wrap: break-word;
  margin-top: -45px;
}


.qr-instructions {
  margin-bottom: 32px;
  text-align: left;
}

.qr-instructions-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step-counter;
}

.qr-instructions-list li {
  counter-increment: step-counter;
  padding-left: 32px;
  position: relative;
  margin-bottom: 16px;
  color: #333;
  font-size: 16px;
  line-height: 1.5;
}

.qr-instructions-list li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  background: #ff6b3500;
  color: #333;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
}

.qr-code-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 24px;
}

.qr-code-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: #f9f9f9;
  border-radius: 12px;
  border: 2px dashed #ddd;
  width: 200px;
  height: 200px;
  justify-content: center;
}

.qr-code-placeholder svg {
  width: 100%;
  height: 100%;
}

.qr-placeholder-text {
  color: #999;
  font-size: 14px;
  margin: 0;
}

.qr-code-image {
  width: 200px;
  height: 200px;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}

/* Responsive */
@media (max-width: 600px) {
  .qr-modal {
    width: 100%;
    max-width: 100%;
    border-radius: 12px;
    margin: 0;
  }

  .qr-modal-content {
    padding: 32px 24px;
  }

  .qr-modal-title {
    font-size: 20px;
  }

  .qr-instructions-list li {
    font-size: 14px;
  }

  .qr-code-placeholder {
    width: 180px;
    height: 180px;
  }
}

/* ===== FOOTER LINKS ===== */
.footer-links {
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid #eee;
  line-height: 1.2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.footer-link-button {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #333;
  cursor: pointer;
  transition: color 0.2s;
  text-align: center;
  line-height: 1.2;
  width: 100%;
  display: block;
}

.footer-link-button:hover {
  color: #ff6b35;
  text-decoration: underline;
}

.footer-link-button:active {
  color: #e55a2b;
}

/* ===== TERMS ===== */
.terms-wrapper {
  margin-top: 0;
  padding: 0 16px;
}

.terms-text {
  font-size: 11px;
  color: #666;
  line-height: 1.2;
}

.terms-link {
  color: #ff6b35;
  text-decoration: none;
}

.terms-link:hover {
  text-decoration: underline;
}

/* ===== VERIFICATION BOX ===== */
.verify-box {
  display: none;
  text-align: center;
  padding: 30px;
  background: white;
  border-radius: 24px;
  margin-top: 20px;
  box-shadow: rgba(0, 0, 0, 0.45) 0px 2px 10px;
  max-width: 484px;
  margin-left: auto;
  margin-right: auto;
}

.verify-box h3 {
  color: #333;
  margin-bottom: 10px;
  font-size: 24px;
  font-weight: 600;
}

.verify-box p {
  color: #666;
  margin-bottom: 20px;
  font-size: 14px;
}

.code-inputs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 20px;
}

.code-digit {
  width: 50px;
  height: 50px;
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  border: 2px solid #ddd;
  border-radius: 12px;
  background: #fff;
  color: #333;
}

.code-digit:focus {
  outline: none;
  border-color: #ff6b35;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.verify-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.btn {
  padding: 12px 24px;
  border-radius: 24px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-primary {
  background: #ff6b35;
  color: white;
}

.btn-primary:hover {
  background: #e55a2b;
}

.btn-ghost {
  background: transparent;
  color: #666;
  border: 1px solid #ddd;
}

.btn-ghost:hover {
  background: #f5f5f5;
}

.btn-ghost:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 600px) {
  .pinterest-modal {
    width: 100%;
    border-radius: 24px;
    margin: 20px;
  }

  .modal-content {
    padding: 20px 16px;
  }

  .title-wrapper {
    width: 100%;
  }

  .modal-title {
    font-size: 28px;
  }

  .form-wrapper {
    width: 100%;
  }

  .code-digit {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}

/* ===== NOTIFICAÇÕES ===== */
.notification-container {
  position: fixed !important;
  bottom: 30px !important;
  right: 30px !important;
  z-index: 99999 !important;
  pointer-events: none;
}

.notification {
  background: white !important;
  border-radius: 16px !important;
  padding: 20px 24px !important;
  margin-bottom: 16px !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.08) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  min-width: 320px !important;
  max-width: 400px !important;
  pointer-events: auto !important;
  transform: translateX(120%) scale(0.9) !important;
  opacity: 0 !important;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  position: relative !important;
  overflow: hidden !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}

.notification::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ff6b35, #f7931e);
  border-radius: 12px 12px 0 0;
}

.notification.show {
  transform: translateX(0) scale(1) !important;
  opacity: 1 !important;
}

.notification.error {
  border-left: 4px solid #ff6b35 !important;
  background: linear-gradient(135deg, #fff 0%, #fff5f5 100%) !important;
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.2) !important;
}

.notification.error::before {
  background: transparent !important; /* remove o gradiente */
  height: 4px !important;
}

.notification.error .notification-title {
  color: #dc2626 !important;
  font-weight: 700 !important;
  font-size: 15px !important;
}

.notification.error .notification-message {
  color: #7f1d1d !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
  font-weight: 500 !important;
}

.notification.error .notification-icon {
  width: 18px !important;
  height: 18px !important;
  stroke: #dc2626 !important;
}

.notification.success {
  border-left: none !important;
  border: none !important;
}

.notification.success::before {
  display: none !important;
}

.notification.warning {
  border-left: 4px solid #f59e0b !important;
}

.notification.warning::before {
  background: linear-gradient(90deg, #f59e0b, #d97706) !important;
}

.notification.info {
  border-left: 4px solid #3b82f6 !important;
}

.notification.info::before {
  background: linear-gradient(90deg, #3b82f6, #2563eb) !important;
}

.notification-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 12px !important;
  position: relative !important;
  z-index: 2 !important;
}

.notification-title {
  font-weight: 700 !important;
  font-size: 16px !important;
  color: #111827 !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  letter-spacing: -0.02em !important;
}

.notification-icon {
  width: 16px !important;
  height: 16px !important;
  flex-shrink: 0 !important;
}

.notification-close {
  background: rgba(0, 0, 0, 0.05) !important;
  border: none !important;
  cursor: pointer !important;
  padding: 6px !important;
  border-radius: 6px !important;
  color: #6b7280 !important;
  transition: all 0.2s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 24px !important;
  height: 24px !important;
}

.notification-close:hover {
  background: rgba(0, 0, 0, 0.1) !important;
  color: #374151 !important;
  transform: scale(1.05) !important;
}

.notification-message {
  font-size: 14px !important;
  color: #4b5563 !important;
  line-height: 1.6 !important;
  margin: 0 !important;
  font-weight: 400 !important;
  position: relative !important;
  z-index: 2 !important;
  word-wrap: break-word !important;
}

.notification-progress {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  height: 2px !important;
  background: linear-gradient(90deg, #ff6b35, #f7931e) !important;
  border-radius: 0 0 12px 12px !important;
  transition: width 0.3s ease-out !important;
}
