:root {
  --primary-color: #1e3a8a;
  --secondary-color: #0ea5e9;
  --text-color: #333;
  --background-color: rgba(240, 249, 255, 0.5);
  --card-background: rgba(255, 255, 255, 0.9);
  --border-color: #e5e7eb;
  --success-color: #10b981;
  --error-color: #ef4444;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html, body {
  overflow: hidden;
  height: 100%;
}

body {
  background-image: url('bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-color: var(--background-color);
  color: var(--text-color);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  padding-top: 70px;
}

body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: -1;
}

.container {
  width: 100%;
  max-width: 500px;
  position: relative;
  z-index: 1;
}

.card {
  background-color: var(--card-background);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  padding: 32px;
  backdrop-filter: blur(5px);
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: -15px;
  right: -15px;
  width: 60px;
  height: 60px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%231e3a8a"><path d="M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"/></svg>');
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.2;
  z-index: 0;
}

/* Avatar image above heading */
.avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 16px;
}

h1 {
  color: var(--primary-color);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

h2 {
  color: var(--secondary-color);
  font-size: 20px;
  margin-bottom: 24px;
  text-align: center;
  font-weight: 500;
}

.input-group {
  margin-bottom: 24px;
}

.input-group input {
  border: 2px solid var(--border-color);
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 16px;
  width: 100%;
  transition: all 0.3s ease;
  background-color: rgba(255, 255, 255, 0.8);
}

/* Add styling for placeholder */
.input-group input::placeholder {
  color: #aaa;
  font-size: 14px;
  font-style: italic;
}

.input-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 16px;
  transition: border-color 0.3s;
}

input:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.2);
}

.button-group {
  display: flex;
  gap: 12px;
}

button {
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 1;
}

.primary-btn {
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  border: none;
  border-radius: 6px;
  color: white;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  padding: 12px 24px;
  transition: all 0.3s ease;
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
}

.secondary-btn {
  background-color: #f1f5f9;
  color: var(--text-color);
}

.secondary-btn:hover {
  background-color: #e2e8f0;
}

.status {
  margin-top: 20px;
  padding: 12px;
  border-radius: 6px;
  font-weight: 500;
  text-align: center;
  animation: fadeIn 0.3s ease-in-out;
}

.status.success {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--success-color);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.status.error {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--error-color);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.hidden {
  display: none;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
  .card {
    padding: 24px;
  }
  
  h1 {
    font-size: 24px;
  }
  
  h2 {
    font-size: 18px;
  }
  
  .button-group {
    flex-direction: column;
  }
}
