/* Custom Premium Styling for Email Server App - Light Mode Edition */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --bg-color: #f8fafc;
  --panel-bg: rgba(255, 255, 255, 0.75);
  --panel-border: rgba(99, 102, 241, 0.08);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --accent-violet: #6d28d9;
  --accent-teal: #0f766e;
  --accent-pink: #be185d;
  --input-bg: rgba(255, 255, 255, 0.9);
  --input-focus-border: #4f46e5;
  --shadow-color: rgba(15, 23, 42, 0.06);
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-color);
  background-image: 
    radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.06) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(20, 184, 166, 0.05) 0px, transparent 50%),
    radial-gradient(at 50% 50%, rgba(236, 72, 153, 0.03) 0px, transparent 50%);
  background-attachment: fixed;
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 20px;
  box-sizing: border-box;
}

.glass-card {
  background: var(--panel-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  padding: 40px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 20px 40px var(--shadow-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 25px 50px rgba(15, 23, 42, 0.1);
  border-color: rgba(99, 102, 241, 0.15);
}

.admin-card {
  max-width: 720px;
}

h1 {
  font-weight: 700;
  font-size: 2.25rem;
  letter-spacing: -0.025em;
  margin-bottom: 0.5rem;
  background: linear-gradient(to right, #4f46e5, #7c3aed, #db2777);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
}

.subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  text-align: center;
  margin-bottom: 2rem;
  font-weight: 300;
}

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

.form-control, .form-select, textarea {
  background-color: var(--input-bg) !important;
  border: 1px solid rgba(15, 23, 42, 0.15) !important;
  color: var(--text-primary) !important;
  border-radius: 12px !important;
  padding: 12px 16px !important;
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.2s ease-in-out !important;
}

.form-control:focus, .form-select:focus, textarea:focus {
  border-color: var(--input-focus-border) !important;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15) !important;
  outline: none;
}

/* Ensure placeholder is properly styled in light mode */
.form-control::placeholder, textarea::placeholder {
  color: #94a3b8 !important;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-violet) 0%, #4f46e5 100%) !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 12px 24px !important;
  font-weight: 600 !important;
  letter-spacing: 0.025em;
  transition: all 0.2s ease !important;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2) !important;
  color: #ffffff !important;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35) !important;
  filter: brightness(1.05);
}

.btn-primary:active {
  transform: translateY(1px);
}

.alert-custom {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #065f46;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.alert-custom-error {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #991b1b;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer {
  margin-top: 3rem;
  font-size: 0.8rem;
  color: #64748b;
  text-align: center;
}

.footer a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer a:hover {
  color: var(--accent-teal);
}

/* Micro-animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
