@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background: linear-gradient(145deg, #0d1f4a 0%, #1a3a7a 55%, #0f3460 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  -webkit-font-smoothing: antialiased;
}

/* ===== CARD ===== */
.login-container {
  width: 100%;
  display: flex;
  justify-content: center;
}

.login-box {
  background: #fff;
  border-radius: 18px;
  padding: 36px 36px 28px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.25);
}

/* ===== LOGO ===== */
.logo {
  width: 170px;
  display: block;
  margin: 0 auto 20px;
}

.divider {
  border: none;
  border-top: 1px solid #f0f0f0;
  margin-bottom: 20px;
}

/* ===== HEADER ===== */
.login-header {
  text-align: center;
  margin-bottom: 22px;
}

.login-header h2 {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}

.login-header p {
  font-size: 13px;
  color: #94a3b8;
}

/* ===== INPUT GROUP ===== */
.input-group {
  margin-bottom: 14px;
}

.input-group label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}

.input-wrap {
  display: flex;
  align-items: center;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.input-wrap:focus-within {
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249,115,22,0.1);
  background: #fff;
}

.input-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  color: #94a3b8;
  flex-shrink: 0;
}

.input-icon svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.8;
}

.input-wrap input {
  flex: 1;
  padding: 11px 8px 11px 0;
  border: none;
  outline: none;
  font-size: 13.5px;
  color: #0f172a;
  background: transparent;
  font-family: inherit;
}

.input-wrap input::placeholder { color: #cbd5e1; }

.toggle-pass {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 12px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  transition: color 0.15s;
}

.toggle-pass:hover { color: #475569; }

.toggle-pass svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.8;
}

/* ===== OPTIONS ===== */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  margin-top: 4px;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: #64748b;
  cursor: pointer;
  user-select: none;
}

.remember-me input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: #f97316;
  cursor: pointer;
}

.forgot-link {
  font-size: 12.5px;
  color: #f97316;
  text-decoration: none;
  font-weight: 600;
}

.forgot-link:hover { text-decoration: underline; }

/* ===== ERROR ===== */
.error-msg {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 12.5px;
  margin-bottom: 12px;
}

.error-msg.hidden { display: none; }

/* ===== BUTTON ===== */
.btn-login {
  width: 100%;
  padding: 12px;
  background: #f97316;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s, transform 0.1s;
  font-family: inherit;
  letter-spacing: 0.2px;
}

.btn-login:hover { background: #ea6c0a; }
.btn-login:active { transform: scale(0.98); }
.btn-login:disabled { background: #fdba74; cursor: not-allowed; }

/* ===== FOOTER ===== */
.footer-text {
  text-align: center;
  margin-top: 20px;
  font-size: 11.5px;
  color: #cbd5e1;
}
