@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary-color: #007AFF;
  --bg-color: #f0f2f5;
  --card-bg: rgba(255, 255, 255, 0.85);
  --text-color: #1a1a1a;
  --text-light: #666;
  --glass-border: rgba(255, 255, 255, 0.5);
  --error-color: #ff3b30;
  --success-color: #34c759;
}

body.dark-mode {
  --bg-color: #0d1117;
  --card-bg: rgba(30, 35, 45, 0.7);
  --text-color: #f0f6fc;
  --text-light: #8b949e;
  --glass-border: rgba(255, 255, 255, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Outfit', sans-serif;
}

body {
  background: var(--bg-color);
  background-image: radial-gradient(circle at 15% 50%, rgba(0, 122, 255, 0.1), transparent 25%),
                    radial-gradient(circle at 85% 30%, rgba(100, 50, 255, 0.1), transparent 25%);
  color: var(--text-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background 0.3s ease, color 0.3s ease;
}

header {
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary-color);
  text-decoration: none;
  letter-spacing: 1px;
}

nav a {
  margin-left: 20px;
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.2s ease;
}

nav a:hover {
  color: var(--primary-color);
}

main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}

.glass-container {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 40px;
  max-width: 600px;
  width: 100%;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
  animation: slideUp 0.5s ease-out;
}

.glass-container.wide {
  max-width: 900px;
}

h1 {
  font-size: 32px;
  margin-bottom: 12px;
  color: var(--text-color);
}

p {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 24px;
}

h2 {
  font-size: 20px;
  margin-top: 30px;
  margin-bottom: 10px;
  color: var(--primary-color);
}

ul {
  padding-left: 20px;
  margin-bottom: 20px;
  color: var(--text-light);
  line-height: 1.6;
}

.hero {
  text-align: center;
  padding: 60px 20px;
}

.hero h1 {
  font-size: 48px;
  background: linear-gradient(135deg, var(--primary-color), #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
}

.btn {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 12px 28px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

/* Form Styles */
.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-color);
}

.form-group input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.5);
  font-size: 16px;
  color: var(--text-color);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

body.dark-mode .form-group input {
  background: rgba(0, 0, 0, 0.2);
}

.form-group input:focus {
  border-color: var(--primary-color);
  background: transparent;
}

.btn-danger {
  background: var(--error-color);
  width: 100%;
  padding: 16px;
  font-size: 18px;
  margin-top: 10px;
}

.btn-danger:hover {
  box-shadow: 0 4px 12px rgba(255, 59, 48, 0.3);
}

#message {
  margin-top: 20px;
  padding: 16px;
  border-radius: 12px;
  font-weight: 500;
  display: none;
}

#message.error {
  background: rgba(255, 59, 48, 0.1);
  color: var(--error-color);
  border: 1px solid rgba(255, 59, 48, 0.2);
  display: block;
}

#message.success {
  background: rgba(52, 199, 89, 0.1);
  color: var(--success-color);
  border: 1px solid rgba(52, 199, 89, 0.2);
  display: block;
}

footer {
  text-align: center;
  padding: 20px;
  color: var(--text-light);
  font-size: 14px;
}

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

@media (max-width: 600px) {
  header { padding: 16px 20px; }
  .glass-container { padding: 30px 20px; border-radius: 20px; border-left: none; border-right: none; box-shadow: none; background: transparent; backdrop-filter: none; border: none;}
  .hero h1 { font-size: 36px; }
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background: var(--card-bg);
  padding: 40px;
  border-radius: 24px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  border: 1px solid var(--glass-border);
  animation: scaleUp 0.3s ease;
}

.modal-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.modal-content h2 {
  margin-top: 0;
  margin-bottom: 12px;
  color: var(--text-color);
}

.btn-close {
  margin-top: 10px;
  background: var(--bg-color);
  color: var(--text-color);
  border: 1px solid var(--glass-border);
}

.btn-close:hover {
  background: var(--primary-color);
  color: white;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes scaleUp {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
