/* login.css - Cognito Login Overlay Modal styling */

.login-overlay-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: loginFadeIn 0.3s ease;
}

@keyframes loginFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.login-card {
  background: rgba(22, 30, 47, 0.75);
  border: 1px solid rgba(59, 130, 246, 0.2);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  border-radius: 16px;
  padding: 32px;
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: #fff;
  font-family: 'Outfit', sans-serif;
  position: relative;
  animation: loginSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

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

.login-card h2 {
  font-size: 1.55rem;
  font-weight: 700;
  text-align: center;
  margin: 0;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff 40%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.login-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  text-align: center;
  margin: 0;
  line-height: 1.45;
}

/* Social Buttons */
.google-btn {
  background: #ffffff;
  color: #1f2937;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.google-btn:hover {
  background: #f9fafb;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.12);
}

.google-icon {
  width: 18px;
  height: 18px;
}

/* Separator divider */
.login-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  opacity: 0.7;
}

.login-divider::before, .login-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.login-divider:not(:empty)::before {
  margin-right: 12px;
}

.login-divider:not(:empty)::after {
  margin-left: 12px;
}

/* Form inputs */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.login-input-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.login-input-group input {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px 14px;
  color: #fff;
  font-size: 0.92rem;
  outline: none;
  transition: all 0.2s ease;
}

.login-input-group input:focus {
  border-color: var(--accent-color);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.3);
}

/* Submit Action Button */
.login-submit-btn {
  background: linear-gradient(135deg, var(--accent-color) 0%, #1d4ed8 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
  margin-top: 4px;
}

.login-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.5);
}

/* Action Links footer */
.login-footer-links {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  margin-top: 4px;
}

.login-footer-links a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.login-footer-links a:hover {
  color: #60a5fa;
  text-decoration: underline;
}

/* Close Button (Dismiss) */
.login-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.login-close-btn:hover {
  color: #fff;
  transform: scale(1.1);
}

/* Light mode overrides */
body.light-mode .login-overlay-container {
  background: rgba(243, 244, 246, 0.85);
}

body.light-mode .login-card {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
  color: #1f2937;
}

body.light-mode .login-card h2 {
  background: linear-gradient(135deg, #1f2937 40%, #1e3a8a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.light-mode .google-btn {
  background: #f3f4f6;
  border-color: #d1d5db;
}
body.light-mode .google-btn:hover {
  background: #e5e7eb;
}

body.light-mode .login-input-group input {
  background: #ffffff;
  border-color: #d1d5db;
  color: #1f2937;
}
body.light-mode .login-input-group input:focus {
  background: #ffffff;
  border-color: var(--accent-color);
}
