/* ==========================================================================
   KONZPAY - Sistema de Autenticação / Login
   ========================================================================== */

.auth-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at 10% 20%, rgba(249, 158, 2, 0.08) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(29, 104, 216, 0.08) 0%, transparent 40%),
              #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  overflow-y: auto;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.08),
              0 0 0 1px rgba(226, 232, 240, 0.8);
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
  animation: authCardFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes authCardFadeIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: #111111;
}

.auth-header {
  text-align: center;
  margin-bottom: 30px;
}

.auth-logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.auth-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(249, 158, 2, 0.1);
  color: #d97706;
  border: 1px solid rgba(249, 158, 2, 0.2);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.auth-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.auth-subtitle {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.4;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.auth-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-heading);
}

.auth-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  height: 44px;
  padding: 0 14px;
  transition: all var(--transition-fast);
}

.auth-input-wrapper:hover {
  border-color: #cbd5e1;
}

.auth-input-wrapper:focus-within {
  background-color: var(--bg-input-focus);
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(29, 104, 216, 0.15);
}

.auth-input-icon {
  color: #94a3b8;
  display: flex;
  align-items: center;
  margin-right: 10px;
  flex-shrink: 0;
}

.auth-input-icon svg {
  width: 17px;
  height: 17px;
}

.auth-input {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  font-size: 13.5px;
  color: var(--text-main);
  outline: none;
}

.auth-input::placeholder {
  color: #94a3b8;
}

.btn-toggle-pwd {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  margin-left: 8px;
  border-radius: 4px;
  transition: color var(--transition-fast);
}

.btn-toggle-pwd:hover {
  color: var(--text-main);
}

.btn-toggle-pwd svg {
  width: 17px;
  height: 17px;
}

.auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
}

.auth-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--text-muted);
  font-weight: 500;
  user-select: none;
}

.auth-remember input[type="checkbox"] {
  cursor: pointer;
  accent-color: var(--primary-blue);
  width: 15px;
  height: 15px;
}

.auth-forgot-link {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition-fast);
}

.auth-forgot-link:hover {
  color: var(--primary-blue-hover);
  text-decoration: underline;
}

.auth-success-box {
  display: none;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background-color: #ecfdf5;
  border: 1px solid #6ee7b7;
  border-radius: var(--radius-md);
  color: #065f46;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.4;
  animation: authFadeIn 0.3s ease;
}

@keyframes authFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.auth-success-box.show {
  display: flex;
}

.auth-success-box svg,
.auth-success-box i {
  width: 17px;
  height: 17px;
  color: #059669;
  flex-shrink: 0;
  margin-top: 1px;
}

.auth-error-box {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-md);
  color: #dc2626;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.35;
  animation: authShake 0.3s ease;
}

@keyframes authShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.auth-error-box.show {
  display: flex;
}

.auth-error-box svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn-auth-submit {
  width: 100%;
  height: 46px;
  background: linear-gradient(135deg, #facc15 0%, #eab308 100%);
  color: #0f172a;
  border: 1px solid #ca8a04;
  border-radius: var(--radius-md);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(234, 179, 8, 0.3);
  transition: all var(--transition-fast);
}

.btn-auth-submit svg {
  color: #0f172a;
  stroke: #0f172a;
}

.btn-auth-submit:hover {
  background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
  color: #000000;
  box-shadow: 0 6px 16px rgba(234, 179, 8, 0.4);
  transform: translateY(-1px);
}

.btn-auth-submit:hover svg {
  color: #000000;
  stroke: #000000;
}

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

.btn-auth-submit.loading {
  pointer-events: none;
  opacity: 0.85;
}

.auth-footer-security {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 11.5px;
  color: #94a3b8;
  font-weight: 500;
}

.auth-footer-security svg {
  width: 14px;
  height: 14px;
  color: #10b981;
}
