* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #0e0e1a;
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(102,126,234,0.18) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 100%, rgba(118,75,162,0.14) 0%, transparent 60%);
  color: #e2e8f0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-wrapper {
  width: 100%;
  max-width: 440px;
}

.login-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 20px;
  padding: 48px 40px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  text-align: center;
}

.login-logo {
  margin-bottom: 16px;
}

.login-logo img {
  border-radius: 16px;
  box-shadow: 0 0 32px rgba(167,139,250,0.25);
}

h1 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #a78bfa, #667eea, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.login-subtitle {
  font-size: 14px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 32px;
  line-height: 1.5;
}

.login-form {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
}

.input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 10px;
  font-size: 14px;
  color: #e2e8f0;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.input::placeholder { color: rgba(255,255,255,0.22); }

.input:focus {
  border-color: rgba(167,139,250,0.55);
  background: rgba(255,255,255,0.07);
}

.input-with-btn {
  position: relative;
}

.input-with-btn .input {
  padding-right: 44px;
}

.toggle-pw {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  transition: color 0.15s;
  padding: 0;
}

.toggle-pw:hover { color: rgba(167,139,250,0.8); }

.login-message {
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 8px;
  display: none;
}

.login-message.error {
  display: block;
  background: rgba(252,129,129,0.1);
  border: 1px solid rgba(252,129,129,0.3);
  color: #fc8181;
}

.login-message.success {
  display: block;
  background: rgba(72,187,120,0.1);
  border: 1px solid rgba(72,187,120,0.3);
  color: #68d391;
}

.btn {
  padding: 13px 20px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: all 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea, #a78bfa);
  color: #fff;
  box-shadow: 0 0 20px rgba(102,126,234,0.3);
  width: 100%;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 30px rgba(102,126,234,0.45);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.login-links {
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

.btn-link {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
  color: #a78bfa;
  padding: 0;
  margin-left: 4px;
  transition: color 0.15s;
}

.btn-link:hover { color: #c4b5fd; text-decoration: underline; }

.btn-link-muted {
  color: rgba(255,255,255,0.3);
  margin-left: 0;
}

.btn-link-muted:hover { color: rgba(255,255,255,0.55); }
