/* ════════════════════════════════════════════════════════════════
   DeployPro — Login Page CSS
   ════════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:      #080d1a;
  --bg-2:    #0d1426;
  --bg-3:    #111b30;
  --border:  #1e2d4a;
  --accent:  #4f46e5;
  --accent-g: rgba(79,70,229,.25);
  --green:   #10b981;
  --red:     #ef4444;
  --text-1:  #e2e8f0;
  --text-2:  #94a3b8;
  --text-3:  #475569;
  --font:    'Segoe UI', system-ui, sans-serif;
  --font-mono: 'Cascadia Code', monospace;
}

html, body {
  height: 100%;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-1);
  line-height: 1.5;
}

.login-bg {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 80% 60% at 50% -20%, rgba(79,70,229,.18) 0%, transparent 70%),
    var(--bg);
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  padding: 40px 36px;
  box-shadow: 0 24px 80px rgba(0,0,0,.6);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
}

.login-brand-icon {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  flex-shrink: 0;
}

.login-brand-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -.3px;
}

.login-brand-sub {
  font-size: 12px;
  color: var(--text-3);
}

.login-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 6px;
}

.login-sub {
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 28px;
}

.login-field {
  margin-bottom: 18px;
}

.login-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 6px;
  letter-spacing: .3px;
}

.login-field label i {
  margin-right: 5px;
  color: var(--text-3);
}

.login-field input {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text-1);
  font-size: 14px;
  font-family: var(--font);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.login-field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-g);
}

.login-pass-wrap {
  position: relative;
}

.login-pass-wrap input {
  padding-right: 44px;
}

.login-pass-wrap button {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 40px;
  background: none;
  border: none;
  color: var(--text-3);
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .2s;
}

.login-pass-wrap button:hover { color: var(--text-1); }

.login-error {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(239,68,68,.12);
  border: 1px solid rgba(239,68,68,.3);
  color: #fca5a5;
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 16px;
}

.login-btn {
  width: 100%;
  padding: 12px;
  background: var(--accent);
  color: #fff;
  border: none;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  letter-spacing: .3px;
  transition: background .2s, transform .1s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.login-btn:hover:not(:disabled) { background: #4338ca; }
.login-btn:active:not(:disabled) { transform: scale(.98); }
.login-btn:disabled { opacity: .6; cursor: not-allowed; }

.login-footer {
  text-align: center;
  margin-top: 24px;
}

.login-back-link {
  font-size: 13px;
  color: var(--text-3);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color .2s;
}

.login-back-link:hover { color: var(--text-1); }
