/* Auth Pages (Login & Register) - consistent with profile/settings UI */

:root {
  --primary-color: #106e8d;
  --secondary-color: #1a5f7a;
  --accent-color: #29a3a3;
  --light-bg: #f0f4f7;
  --card-bg: #ffffff;
  --border-color: #e1e8ed;
  --text-secondary: #6c757d;
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-container {
  padding: 2rem;
  padding-bottom: 7rem;
  max-width: 480px;
  margin: 0 auto;
  background-color: var(--light-bg);
  min-height: calc(100vh - 110px);
}

/* Page Header */
.page-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  padding: 0.75rem 1rem;
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
  transform: translate(30%, -30%);
}

.header-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.header-icon {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: white;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.header-icon i {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.header-text {
  color: white;
}

.page-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.15rem 0;
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-subtitle {
  font-size: 0.75rem;
  margin: 0;
  opacity: 0.9;
  font-weight: 400;
}

/* Form Card */
.auth-card {
  background: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  margin-bottom: 1rem;
}

.auth-card-header {
  background: var(--primary-color);
  color: white;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-bottom: 2px solid var(--secondary-color);
}

.auth-card-body {
  padding: 1.5rem;
}

/* Submit button */
.btn-auth {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.5rem;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(16, 110, 141, 0.3);
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
}

.btn-auth:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 110, 141, 0.4);
}

/* Footer link */
.auth-footer {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.auth-footer a {
  color: var(--primary-color);
  font-weight: 500;
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* Ducky referral banner */
.ducky-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: #fff8e1;
  border: 1px solid #f0c040;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: #5a4000;
}

.ducky-alert i {
  color: #f0c040;
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 2px;
}
