:root {
  --cyan: #00b8d4;
  --cyan-soft: #00acc1;
  --bg: #00050f;
  --glass: rgba(0, 12, 32, 0.6);
  --text: #e0f7fa;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, sans-serif;
  position: relative;
  overflow: hidden;
  background-image:
    linear-gradient(0deg, #001f3f 1px, transparent 1px),
    linear-gradient(90deg, #001f3f 1px, transparent 1px);
  background-size: 100px 100px;
  background-position: center;
}

body::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 300px;
  height: 100%;
  background: linear-gradient(180deg, transparent, rgba(0, 184, 212, 0.1), transparent);
  transform: translateX(-50%);
  filter: blur(50px);
  animation: pulse 4s infinite;
  pointer-events: none;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.login-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-card {
  max-width: 450px;
  width: 100%;
  padding: 40px;
  background: var(--glass);
  border-radius: 20px;
  backdrop-filter: blur(15px);
  border: 1px solid rgba(0, 184, 212, 0.3);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(0, 184, 212, 0.1);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.login-title {
  text-align: center;
  margin-bottom: 12px;
}

.t-cyrus {
  color: var(--cyan);
  font-size: 36px;
  font-weight: 900;
  font-family: 'Courier New', monospace;
  letter-spacing: 2px;
  text-shadow: 0 0 15px rgba(0, 184, 212, 0.9);
}

.t-ai {
  color: var(--cyan);
  font-size: 36px;
  font-weight: 900;
  font-family: 'Courier New', monospace;
  margin-left: 12px;
  text-shadow: 0 0 15px rgba(0, 184, 212, 0.9);
}

.field { display: flex; flex-direction: column; gap: 6px; }

.field-label {
  font-size: 13px;
  color: rgba(224, 247, 250, 0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.field input {
  background-color: rgba(0, 31, 63, 0.5);
  color: var(--text);
  border: 1px solid rgba(0, 184, 212, 0.4);
  border-radius: 8px;
  padding: 14px 12px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 10px rgba(0, 184, 212, 0.35);
}

.init-btn {
  background: linear-gradient(90deg, var(--cyan) 0%, var(--cyan-soft) 100%);
  color: #00050f;
  font-weight: bold;
  letter-spacing: 1px;
  font-size: 15px;
  padding: 15px 0;
  width: 100%;
  border: none;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 184, 212, 0.4);
  cursor: pointer;
  transition: filter 0.2s, transform 0.1s;
}

.init-btn:hover { filter: brightness(1.08); }
.init-btn:active { transform: translateY(1px); }
.init-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.login-error {
  color: #ff7a7a;
  font-size: 14px;
  text-align: center;
  margin: 0;
}
