@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh;
  background: linear-gradient(135deg, #f8fafc 0%, #e8effa 50%, #f0f4ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a1d2e;
  position: relative;
  overflow: hidden;
}

.login-wrapper {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  z-index: 1;
}

.login-bg-pattern {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(37,99,235,0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(37,99,235,0.04) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(37,99,235,0.03) 0%, transparent 70%);
  z-index: 0;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border-radius: 20px;
  padding: 48px 40px 36px;
  box-shadow:
    0 4px 6px rgba(0,0,0,0.02),
    0 12px 28px rgba(0,0,0,0.06),
    0 0 0 1px rgba(0,0,0,0.04);
  position: relative;
  z-index: 2;
}

.login-brand {
  text-align: center;
  margin-bottom: 36px;
}

.login-brand h1 {
  font-size: 22px;
  font-weight: 700;
  color: #1a1d2e;
  letter-spacing: -0.3px;
}

.login-brand p {
  font-size: 14px;
  color: #8b8fa3;
  margin-top: 4px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #4a4e6a;
  margin-bottom: 8px;
}

.form-group label i {
  font-size: 15px;
  color: #8b8fa3;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #e2e5ed;
  border-radius: 12px;
  font-size: 14px;
  font-family: inherit;
  color: #1a1d2e;
  background: #f8f9fc;
  transition: all 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37,99,235,0.1);
  background: #fff;
}

.form-group input::placeholder {
  color: #b0b4c8;
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 44px;
}

.toggle-pw {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #8b8fa3;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}

.toggle-pw:hover {
  color: #2563eb;
  background: rgba(37,99,235,0.06);
}

.error-msg {
  padding: 12px 16px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  color: #dc2626;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.error-msg::before {
  content: '!';
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #dc2626;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hidden { display: none !important; }

.btn-login {
  width: 100%;
  padding: 13px 24px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(37,99,235,0.3);
}

.btn-login:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(37,99,235,0.4);
}

.btn-login:active {
  transform: translateY(0);
}

.btn-login:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.login-footer {
  margin-top: 28px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  color: #b0b4c8;
}

.login-footer i {
  font-size: 14px;
  color: #16a34a;
}

@media (max-width: 480px) {
  .login-card {
    padding: 36px 24px 28px;
    border-radius: 16px;
  }
}
