/* Login Page Styles - Modern Glassmorphism Design */

.login-section {
  padding: 6rem 0;
  min-height: calc(100vh - 15rem);
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  position: relative;
  overflow: hidden;
}

.login-card {
  width: 100%;
  max-width: 480px;
  padding: 3rem;
  background: var(--material-ultra-thin-bg);
  backdrop-filter: blur(var(--material-thick-blur)) saturate(var(--material-thick-saturate));
  -webkit-backdrop-filter: blur(var(--material-thick-blur)) saturate(var(--material-thick-saturate));
  border-radius: var(--radius-lg, 28px);
  box-shadow: var(--glass-shadow, 0 8px 32px rgba(0, 0, 0, 0.1));
  border: 1px solid var(--material-ultra-thin-border);
  animation: fadeIn 0.6s ease-out;
  position: relative;
  z-index: 1;
}

.login-card h1 {
  margin-bottom: 2rem;
  font-weight: 700;
  color: var(--foreground, #1d1d1f);
  text-align: center;
  font-size: clamp(1.75rem, 3vw, 2rem);
}

.login-card p {
  margin-top: 2rem;
  color: var(--secondary-text, #666);
  text-align: center;
  font-size: 0.9375rem;
}

.login-card p a {
  color: var(--ai-icon-blue, #4361ee);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.login-card p a:hover {
  text-decoration: underline;
  color: var(--ai-accent-hover, #307ae0);
}

.login-card .form {
  margin-top: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--secondary-text, #666);
  font-size: 0.9375rem;
}

.form-group input {
  width: 100%;
  padding: 1.25rem;
  border: 1px solid var(--material-thin-border);
  border-radius: var(--radius, 20px);
  background: var(--material-ultra-thin-bg);
  backdrop-filter: blur(var(--material-thin-blur));
  -webkit-backdrop-filter: blur(var(--material-thin-blur));
  font-size: 1rem;
  color: var(--foreground, #1d1d1f);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  min-height: 56px;
}

.form-group input:focus {
  outline: none;
  border-color: var(--ai-icon-blue, #007AFF);
  background: var(--material-thin-bg);
  box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.15), inset 0 2px 8px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

.form-group input::placeholder {
  color: var(--muted, #86868b);
}

.btn-primary {
  display: block;
  width: 100%;
  padding: 1.25rem;
  background: var(--ai-accent-gradient, linear-gradient(135deg, #007AFF, #0056CC));
  border: 1px solid var(--material-thin-border);
  border-radius: var(--radius-pill, 50px);
  color: white;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  backdrop-filter: blur(var(--material-thin-blur));
  -webkit-backdrop-filter: blur(var(--material-thin-blur));
  box-shadow: var(--button-shadow, 0 4px 16px rgba(0, 122, 255, 0.2));
  min-height: 56px;
}

.btn-primary:hover {
  background: var(--ai-accent-hover, linear-gradient(135deg, #0056CC, #003d99));
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--button-hover-shadow, 0 8px 24px rgba(0, 122, 255, 0.3));
  border-color: var(--material-thick-border);
  color: white;
}

.btn-primary:active {
  transform: scale(0.98);
}

/* Alert styles */
.alert {
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: var(--radius);
  text-align: center;
  font-weight: 500;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(var(--material-thin-blur));
  -webkit-backdrop-filter: blur(var(--material-thin-blur));
  font-size: 0.9375rem;
}

.alert::before {
  content: '';
  margin-right: 0.75rem;
  width: 20px;
  height: 20px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  flex-shrink: 0;
}

.alert-danger {
  background: rgba(231, 76, 60, 0.15);
  color: #e74c3c;
  border: 1px solid rgba(231, 76, 60, 0.3);
}

.alert-danger::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23e74c3c' width='24' height='24'%3E%3Cpath d='M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm-1-7v2h2v-2h-2zm0-8v6h2V7h-2z'/%3E%3C/svg%3E");
}

.alert-success {
  background: rgba(46, 204, 113, 0.15);
  color: #2ecc71;
  border: 1px solid rgba(46, 204, 113, 0.3);
}

.alert-success::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232ecc71' width='24' height='24'%3E%3Cpath d='M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm-1.177-7.86l-2.765-2.767L7 12.431l3.823 3.832 7.177-7.177L16.941 8l-6.118 6.14z'/%3E%3C/svg%3E");
}

.alert-warning {
  background: rgba(243, 156, 18, 0.15);
  color: #f39c12;
  border: 1px solid rgba(243, 156, 18, 0.3);
}

.alert-warning::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23f39c12' width='24' height='24'%3E%3Cpath d='M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm-1-7v2h2v-2h-2zm0-8v6h2V7h-2z'/%3E%3C/svg%3E");
}

.forgot-password {
  display: block;
  margin-top: 0.5rem;
  text-align: right;
  font-size: 0.875rem;
  color: var(--secondary-text, #666);
  text-decoration: none;
  transition: color 0.2s ease;
}

.forgot-password:hover {
  color: var(--ai-icon-blue, #4361ee);
  text-decoration: underline;
}

.noscript-warning {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  background-color: rgba(243, 156, 18, 0.9);
  color: white;
  padding: 1rem;
  border-radius: var(--radius, 8px);
  box-shadow: var(--card-shadow, 0 8px 20px rgba(0, 0, 0, 0.08));
  z-index: 100;
  text-align: center;
  font-weight: 500;
  animation: fadeIn 0.3s ease-out;
}

/* Add the fadeIn animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Media queries for responsiveness */
@media (max-width: 768px) {
  .login-card {
    max-width: 90%;
    margin: 0 auto;
    padding: 1.5rem;
  }
  
  .login-section {
    padding: 3rem 1rem;
  }
} 