/* ===== MODERN LOGIN DESIGN: PREMIUM GLASS ===== */
:root {
  --bg-deep: #020617;

  --primary: #3b82f6;
  --primary-glow: rgba(59, 130, 246, 0.5);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --glass-bg: rgba(17, 25, 40, 0.4);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-highlight: rgba(255, 255, 255, 0.15);

  --radius-md: 24px;
  --radius-sm: 12px;

  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Orbitron', sans-serif;

  --danger: #ef4444;
}

/* ===== GLOBAL STYLES ===== */
html,
body {
  margin: 0;
  height: 100%;
  font-family: var(--font-main);
  color: var(--text-main);
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.15) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(139, 92, 246, 0.15) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(16, 185, 129, 0.12) 0px, transparent 50%),
    radial-gradient(at 0% 100%, rgba(239, 68, 68, 0.12) 0px, transparent 50%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* ===== LOGIN CARD ===== */
.login-card {
  position: relative;
  z-index: 1;
  width: 400px;
  padding: 48px;
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-top: 1px solid var(--glass-border-highlight);
  border-left: 1px solid var(--glass-border-highlight);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

/* ===== HEADINGS ===== */
.login-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 0.1em;
  background: linear-gradient(to right, #fff, #94a3b8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.15);
}

.login-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 40px;
}

/* ===== INPUT FIELDS ===== */
.input-group {
  position: relative;
  width: 100%;
  margin-bottom: 20px;
}

input {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  text-align: left;
  color: var(--text-main);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: all 0.3s ease;
  font-family: var(--font-main);
}

input::placeholder {
  color: var(--text-dim);
}

input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
  background: rgba(0, 0, 0, 0.3);
}

/* Password Toggle */
.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.3s;
  padding: 4px;
}

.toggle-password:hover {
  opacity: 1;
}

.eye-icon {
  display: block;
  width: 18px;
  height: 12px;
  border: 2px solid var(--text-muted);
  border-radius: 50%;
  position: relative;
}

.eye-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  background: var(--text-muted);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

/* ===== BUTTON ===== */
.btn {
  width: 100%;
  padding: 14px;
  margin-top: 10px;
  font-weight: 600;
  font-size: 15px;
  color: white;
  background: linear-gradient(135deg, var(--primary), #2563eb);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.5);
}

/* ===== ERROR MESSAGE ===== */
.login-msg {
  margin-top: 20px;
  font-size: 13px;
  color: var(--danger);
  opacity: 0;
  transition: opacity 0.3s ease;
  min-height: 20px;
  text-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

.login-msg.active {
  opacity: 1;
}